PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Helper Class / Reflection­Helper Methods / Reflection­Helper.​Is­Compiler­Generated Method / Reflection­Helper.​Is­Compiler­Generated Method (Type)

ReflectionHelper.IsCompilerGenerated Method (Type)

Determines whether a Type is compiler-generated.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static bool IsCompilerGenerated(
	this Type type


Type: System.Type
A Type.

Return Value

Type: Boolean
true if type 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 Type. 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