CogParseGenericAQN ClassCognex VisionPro 9.7
This class parses a .NET Assembly Qualified Name (AQN). Though it should handle any properly formatted AQN, it is designed specifically to handle the parseing of AQN which contains generic type information. This class was created for use by the VisionPro serialization mechanism to enable deserialization of generic types that is consistent with normal VisionPro deserialization (Serialized VisionPro objects often wish to bind to the latest version of an assembly available on deserialization).
Inheritance Hierarchy

System Object
  Cognex.VisionPro.Implementation CogParseGenericAQN

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax

[ObsoleteAttribute("CogParseGenericAQN is obsolete and will be removed in a future release")]
public class CogParseGenericAQN

The CogParseGenericAQN type exposes the following members.

Constructors

  NameDescription
Public methodCogParseGenericAQN
Creates a new CogParseGenericAQN
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetAssemblyName
Returns the Assembly name from an AQN
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetTypeName
Returns the Type Name part of an AQN
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyGenericParams
The individual AQNs of the contained generic type parameters
Public propertyIsPartialGeneric
Public propertyNumParams
The number of generic parameters in the parsed AQN
Public propertyTypeName
The gereric type name without any generic type parameters that may have been present in the original AQN
Top
Remarks

Most of the information need to construct this parser was taken from here: http://msdn.microsoft.com/en-us/library/w3f99sx1.aspx and here: http://msdn.microsoft.com/en-us/library/yfsftwz6(VS.80).aspx here are some AQN examples: A generic type with one type argument "MyGenericType`1[MyType]" A generic type with two type arguments "MyGenericType`2[MyType,AnotherType]" A generic type with two assembly-qualified type arguments "MyGenericType`2[[MyType,MyAssembly],[AnotherType,AnotherAssembly]]" An assembly-qualified generic type with an assembly-qualified type argument "MyGenericType`1[[MyType,MyAssembly]],MyGenericTypeAssembly" A generic type whose type argument is a generic type with two type arguments "MyGenericType`1[AnotherGenericType`2[MyType,AnotherType]]"
See Also