PostSharp6.4//API Reference/Post­Sharp.​Reflection Namespace/Reflection­Helper Class/Reflection­Helper Methods/Reflection­Helper.​Is­Compiler­Generated Method/Reflection­Helper.​Is­Compiler­Generated Method (Member­Info)

ReflectionHelper.IsCompilerGenerated Method (MemberInfo)

Determines whether a MemberInfo is compiler-generated.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public static bool IsCompilerGenerated(
	this MemberInfo member
)

Parameters

member
Type: System.Reflection.MemberInfo
A MemberInfo.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MemberInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also