Pip-Services-Commons-Dotnet
Public Member Functions | Static Public Member Functions | Properties | List of all members
PipServices3.Commons.Reflect.TypeDescriptor Class Reference

Descriptor that points to specific object type by it's name and optional library(or module) where this type is defined. More...

Public Member Functions

 TypeDescriptor ()
 Creates a new instance of the type descriptor. More...
 
 TypeDescriptor (string name, string library)
 Creates a new instance of the type descriptor and sets its values. More...
 
override bool Equals (object obj)
 Compares this descriptor to a value. If the value is also a TypeDescriptor it compares their name and library fields.Otherwise this method returns false. More...
 
override int GetHashCode ()
 
override string ToString ()
 Gets a string representation of the object. The result has format name[, library] More...
 

Static Public Member Functions

static TypeDescriptor FromString (string value)
 Parses a string to get descriptor fields and returns them as a Descriptor. The string must have format name[, library] More...
 

Properties

string Name [get]
 
string Library [get]
 

Detailed Description

Descriptor that points to specific object type by it's name and optional library(or module) where this type is defined.

This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.

Constructor & Destructor Documentation

◆ TypeDescriptor() [1/2]

PipServices3.Commons.Reflect.TypeDescriptor.TypeDescriptor ( )

Creates a new instance of the type descriptor.

◆ TypeDescriptor() [2/2]

PipServices3.Commons.Reflect.TypeDescriptor.TypeDescriptor ( string  name,
string  library 
)

Creates a new instance of the type descriptor and sets its values.

Parameters
namea name of the object type.
librarya library or module where this object type is implemented.

Member Function Documentation

◆ Equals()

override bool PipServices3.Commons.Reflect.TypeDescriptor.Equals ( object  obj)

Compares this descriptor to a value. If the value is also a TypeDescriptor it compares their name and library fields.Otherwise this method returns false.

Parameters
obja value to compare.
Returns
true if value is identical TypeDescriptor and false otherwise.

◆ FromString()

static TypeDescriptor PipServices3.Commons.Reflect.TypeDescriptor.FromString ( string  value)
static

Parses a string to get descriptor fields and returns them as a Descriptor. The string must have format name[, library]

Parameters
valuea string to parse.
Returns
a newly created Descriptor.

◆ ToString()

override string PipServices3.Commons.Reflect.TypeDescriptor.ToString ( )

Gets a string representation of the object. The result has format name[, library]

Returns
a string representation of the object.

The documentation for this class was generated from the following file: