ReflectionNameOptions Enumeration |
Options for the methods WriteReflectionName(StringBuilder, ReflectionNameOptions).
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
[FlagsAttribute] public enum ReflectionNameOptions
Member name | Value | Description | |
---|---|---|---|
None | 0 | Default. | |
UseAssemblyName | 1 | Use assembly-qualified type names. | |
AngleGenericBrackets | 0 | Use angle brackets (e.g. <T>) for generic arguments. This is the default option. | |
SquareGenericBrackets | 2 | Use square brackets (e.g. [T]) instead of angle brackets (e.g. <T>). By default, angle brackets are used. | |
CurlGenericBrackets | 4 | Use curle brackets (e.g. {T}) instead of angle brackets (e.g. <T>) for generic arguments. By default, angle brackets are used. | |
GenericBracketsMask | 6 | Bit mask specifying the kind of brackets used for generic arguments. Valid values are AngleGenericBrackets (by default), SquareGenericBrackets and CurlGenericBrackets. | |
IgnoreGenericTypeDefParameters | 8 | Do not write generic parameters in type definitions. By default, the list of generic parameters is written. | |
DefaultContext | 0 | Default context. Masked by ContextMask. | |
MethodParameterContext | 16 | Encode using the rule that System.Reflection follows when it writes method parameters. Masked by ContextMask. | |
GenericArgumentContext | 32 | Encode using the rule that System.Reflection follows when it writes generic arguments. Masked by ContextMask. | |
ContextMask | 48 | Masks the bits determining the encoding rules. Encoding rules are needed when trying to mimic exactly the behavior of System.Reflection. | |
UseOrdinalsForGenerics | 64 | WriteValue ordinals of generic parameters (.e.g. !0, !1, !!0, ...) instead of the name of generic parameters. | |
SkipNamespace | 128 | Do not write namespaces of types. | |
XmlDoc | 256 | Indicates that the name should be generated in the XML documentation format. | |
XmlDocOptions | 268 | All options necessary to generate a name compatible with the XML documentation format. | |
XmlDocPrefix | 512 | Indicates that the name should start with the XML documentation format. | |
SymFile | 1024 | Indicates that the name should be generated for compatibility for the symbol file. | |
SymFileOptions | 1024 | All options necessary to generate a name for the symbol file. | |
SerializedValue | 2048 | Indicates that the type name should be compatible with serialized values. | |
UseAssemblyNameForTypeRefOnly | 4096 | Write the assembly name for TypeRefDeclaration but not for TypeDefDeclaration. | |
SerializedValueOptions | 2059 | All options necessary to generate a name compatible with serialized values. | |
UseIntrinsicNames | 8192 | Use intrinsic type names where possible. | |
SkipMemberName | 16384 | Do not write the member name (only its signature). | |
UseCStylePointerModifier | 32768 | Use * and & instead of ByRef for pointers. | |
SignatureOptions | 57416 | Member signature as supported by Dotfuscator. | |
XmlDocSkipParameterSpaces | 65536 | When generating XmlDoc, do not put spaces between method parameters. |