PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­HelperIs­Compiler­Generated
Open sandboxFocus

ReflectionHelper.IsCompilerGenerated Method

IsCompilerGenerated(MemberInfo)

Determines whether a System.Reflection.MemberInfo is compiler-generated.

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

A System.Reflection.MemberInfo.

Returns
Type Description
Boolean

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

IsCompilerGenerated(Type)

Determines whether a System.Type is compiler-generated.

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

A System.Type.

Returns
Type Description
Boolean

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