PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Reflection­Name­Options Enumeration

ReflectionNameOptions Enumeration

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
[FlagsAttribute]
public enum ReflectionNameOptions
Members
  Member nameValueDescription
None0 Default.
UseAssemblyName1 Use assembly-qualified type names.
AngleGenericBrackets0 Use angle brackets (e.g. <T>) for generic arguments. This is the default option.
SquareGenericBrackets2 Use square brackets (e.g. [T]) instead of angle brackets (e.g. <T>). By default, angle brackets are used.
CurlGenericBrackets4 Use curle brackets (e.g. {T}) instead of angle brackets (e.g. <T>) for generic arguments. By default, angle brackets are used.
GenericBracketsMask6 Bit mask specifying the kind of brackets used for generic arguments. Valid values are AngleGenericBrackets (by default), SquareGenericBrackets and CurlGenericBrackets.
IgnoreGenericTypeDefParameters8 Do not write generic parameters in type definitions. By default, the list of generic parameters is written.
DefaultContext0 Default context. Masked by ContextMask.
MethodParameterContext16 Encode using the rule that System.Reflection follows when it writes method parameters. Masked by ContextMask.
GenericArgumentContext32 Encode using the rule that System.Reflection follows when it writes generic arguments. Masked by ContextMask.
ContextMask48 Masks the bits determining the encoding rules. Encoding rules are needed when trying to mimic exactly the behavior of System.Reflection.
UseOrdinalsForGenerics64 WriteValue ordinals of generic parameters (.e.g. !0, !1, !!0, ...) instead of the name of generic parameters.
SkipNamespace128 Do not write namespaces of types.
XmlDoc256 Indicates that the name should be generated in the XML documentation format.
XmlDocOptions268 All options necessary to generate a name compatible with the XML documentation format.
XmlDocPrefix512 Indicates that the name should start with the XML documentation format.
SymFile1024 Indicates that the name should be generated for compatibility for the symbol file.
SymFileOptions1024 All options necessary to generate a name for the symbol file.
SerializedValue2048 Indicates that the type name should be compatible with serialized values.
UseAssemblyNameForTypeRefOnly4096 Write the assembly name for TypeRefDeclaration but not for TypeDefDeclaration.
SerializedValueOptions2059 All options necessary to generate a name compatible with serialized values.
UseIntrinsicNames8192 Use intrinsic type names where possible.
SkipMemberName16384 Do not write the member name (only its signature).
UseCStylePointerModifier32768 Use * and & instead of ByRef for pointers.
SignatureOptions57416 Member signature as supported by Dotfuscator.
XmlDocSkipParameterSpaces65536 When generating XmlDoc, do not put spaces between method parameters.
See Also