Returns an array of objects representing all the custom attributes of the constructor represented by this System.Reflection.Emit.ConstructorBuilder instance.
As a workaround, to retrieve the custom attributes of a finished type, retrieve the type using Type.GetType and call System.Reflection.MemberInfo.GetCustomAttributes(bool) on the returned Type.
The following code sample illustrates the use of GetCustomAttribute in the context of System.Reflection.Emit.EnumBuilder.
code reference: EnumBuilder_SetCustomAttribute2#1