Open sandboxFocus

Method SuppressUnusedWarnings

SuppressUnusedWarnings(IAdviser, IFieldOrProperty)

Suppress the warning CS0169 ("The private field is never used.") on a member that is being introduced. This is primarily useful for design-time.

Declaration
public static void SuppressUnusedWarnings(IAdviser adviser, IFieldOrProperty introducedMember)
Parameters
Type Name Description
IAdviser adviser
IFieldOrProperty introducedMember