PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model.​Type­Signatures Namespace / Custom­Modifier Structure

CustomModifier Structure

Represents a custom modifier, which are tags emitted by compilers that add some meaning to the modified type.

Namespace:  PostSharp.Sdk.CodeModel.TypeSignatures
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public struct CustomModifier : IEquatable<CustomModifier>

The CustomModifier type exposes the following members.

Constructors
  NameDescription
Public methodCustomModifier
Initializes a new CustomModifier.
Properties
  NameDescription
Public propertyRequired
Specifies whether the custom modifier is required.
Public propertyType
Gets or sets the type of the custom modifier.
Methods
  NameDescription
Public methodEquals(Object) (Overrides ValueType.Equals(Object).)
Public methodEquals(CustomModifier)
Public methodGetHashCode (Overrides ValueType.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodTranslate
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Remarks

A custom modifier modifies a type and gives a a different meaning. For instance, the IsConst means that the argument should not be changed. Custom modifiers are emitted by compilers.

See Also