Class TypeExtensions
Extension methods for the System.Type class
Inheritance
System.Object
TypeExtensions
Namespace: Atlas
Assembly: Atlas.Editor.dll
Syntax
public static class TypeExtensions
Methods
| Improve this Doc View SourceGetPrimitiveName(Type)
Finds the primitive name for a given type. For instance, where System.Type.FullName would return "System.Int32" for an int, this method would return just "int". This is useful for creating more straight-forward code generation
Declaration
public static string GetPrimitiveName(this Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to get the primitive name of |
Returns
Type | Description |
---|---|
System.String | The primitive name of the given type |