Class Type
Types are abilities/functionalities that typifiy objects.
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "Type", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class Type
Constructors
Type()
Declaration
Type(string, string)
Create a new FIVE Type from string
Declaration
public Type(string sysTypeString, string assemblyName)
Parameters
Type |
Name |
Description |
string |
sysTypeString |
The C# System.Type as a string
|
string |
assemblyName |
The assembly containing the type
|
Type(Type)
Create a new FIVE Type from C# System.Type
Declaration
public Type(Type sysType)
Parameters
Type |
Name |
Description |
Type |
sysType |
The C# System.Type
|
Properties
AssemblyName
Declaration
[DataMember]
public string AssemblyName { get; set; }
Property Value
Name
Declaration
[DataMember]
public string Name { get; set; }
Property Value
SystemType
Declaration
[IgnoreDataMember]
public Type SystemType { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static Type Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out Type)
Declaration
public static bool Deserialize(string xml, out Type obj)
Parameters
Returns
Deserialize(string, out Type, out Exception)
Deserializes workflow markup into an Type object
Declaration
public static bool Deserialize(string xml, out Type obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
Type |
obj |
Output Type object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
IsAssignableFrom(Type)
Checks is the given type equals or inherits from the current type
Declaration
public bool IsAssignableFrom(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
The type to check
|
Returns
Type |
Description |
bool |
True if type equals or inherits from this.systemType
|
LoadFromFile(string)
Declaration
public static Type LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out Type)
Declaration
public static bool LoadFromFile(string fileName, out Type obj)
Parameters
Returns
LoadFromFile(string, out Type, out Exception)
Deserializes XML markup from file into an Type object
Declaration
public static bool LoadFromFile(string fileName, out Type obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
Type |
obj |
Output Type object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
SaveToFile(string)
Declaration
public virtual void SaveToFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
SaveToFile(string, out Exception)
Serializes current Type object into file
Declaration
public virtual bool SaveToFile(string fileName, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
full path of output XML file
|
Exception |
exception |
output Exception value if failed
|
Returns
Type |
Description |
bool |
true if can serialize and save into file; otherwise, false
|
Serialize()
Serializes current Type object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|
ToString()
Declaration
public override string ToString()
Returns
Overrides