PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Envelope Class / Assembly­Envelope Methods

AssemblyEnvelope Methods

The AssemblyEnvelope type exposes the following members.

Methods
  NameDescription
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(IAssembly)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPublicKey
Public methodGetPublicKeyToken
Public methodGetSystemAssembly
Gets the reflection Assembly corresponding to the current instance.
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeDefinition(String)
Gets a type defined in this assembly given its name.
Public methodGetTypeDefinition(String, BindingOptions)
Gets a type defined in this assembly given its name.
Public methodMatchesReference
Public methodSetTag<T>
Set a tag to the current declaration.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
Extension Methods
  NameDescription
Public Extension MethodDefinitionMatchesReference (Defined by CompareExtensions.)
Public Extension MethodDefinitionMatchesReferenceResolved (Defined by CompareExtensions.)
Public Extension MethodEquals (Defined by AssemblyNameExtensions.)
Public Extension MethodEvaluateAssemblyMatchResolved (Defined by CompareExtensions.)
Public Extension MethodGetBindingIdentity
Gets the binding identity of an assembly represented by an IAssemblyName.
(Defined by AssemblyNameExtensions.)
Public Extension MethodGetFullName
Gets the full name of an assembly.
(Defined by AssemblyNameExtensions.)
Public Extension MethodGetReferenceName
Returns a string that can be passed to Load(AssemblyName)
(Defined by AssemblyNameExtensions.)
Public Extension MethodSetBindingContext(BindingContext)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodSetBindingContext(BindingContext)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodSetRetargetable (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyIdentity(String, Guid, FrameworkName)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyIdentity(String, Guid, FrameworkName, Boolean)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyName
Converts an IAssemblyName into an AssemblyName.
(Defined by AssemblyNameExtensions.)
See Also