Open sandboxFocus

Method IsCompilerGenerated

IsCompilerGenerated(MemberInfo)

Determines whether a MemberInfo is compiler-generated.

Declaration
public static bool IsCompilerGenerated(this MemberInfo member)
Parameters
Type Name Description
MemberInfo member

A MemberInfo.

Returns
Type Description
bool

true if member is compiler-generated, false if it is hand-coded.

IsCompilerGenerated(Type)

Determines whether a Type is compiler-generated.

Declaration
public static bool IsCompilerGenerated(this Type type)
Parameters
Type Name Description
Type type

A Type.

Returns
Type Description
bool

true if type is compiler-generated, false if it is hand-coded.