Show / Hide Table of Contents

Class TypeExtensions

Inheritance
System.Object
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:System.Dynamic.ExpandoObject
Assembly:SilverDawn.SilverModel.UML.dll
Syntax
public static class TypeExtensions

Methods

AsPrimitiveType(IType)

Gets the Primitive type for a type or return null

Declaration
public static IPrimitiveType AsPrimitiveType(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
IPrimitiveType

Primitive type or Null

GetUMLType(IType)

Get the Type as a UmlTypeEnum

Declaration
public static UmlTypeEnum GetUMLType(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
UmlTypeEnum
Remarks

Can be one of Undefined,PrimitiveType, Interface, Class, Enumeration

IsClass(IType)

Checks if the type is a Class

Declaration
public static bool IsClass(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
System.Boolean

IsEnumeration(IType)

Checks if the type is an Enumeration

Declaration
public static bool IsEnumeration(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
System.Boolean

IsInterface(IType)

Checks if the type is an Interface

Declaration
public static bool IsInterface(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
System.Boolean

IsPrimitiveType(IType)

Checks if the type is a Primitive Type

Declaration
public static bool IsPrimitiveType(this IType iType)
Parameters
Type Name Description
IType iType
Returns
Type Description
System.Boolean

boolean

TypeInit(IType, String)

Get the Init statement for a language

Declaration
public static string TypeInit(this IType iType, string language)
Parameters
Type Name Description
IType iType
System.String language
Returns
Type Description
System.String

TypeName(IType, String)

Get the type as a string for a language

Declaration
public static string TypeName(this IType iType, string language)
Parameters
Type Name Description
IType iType
System.String language
Returns
Type Description
System.String

TypeNew(IType, String)

Get the type's new string for a language

Declaration
public static string TypeNew(this IType iType, string language)
Parameters
Type Name Description
IType iType
System.String language
Returns
Type Description
System.String
Back to top Generated by DocFX