Class KindNameUtil
The kind name of an object as the wire, the XML files and the UI know it. The value-type
geometry mirrors carry the C++ typedef names (tri3d_t, dvec3d_t,
box2d_t, vec3d_t, vec2d_t) while their kind names
stay the historical Tri3d, DVec3d, Box2d, Vec3d, Vec2d — the
geometry-kind strings of the web API, the Type tag of a presentation DTO and the XML
element names are contracts, the C# type name is not. Every other type answers its own name;
the box geometry kind is the class Box3d, whose name is its kind name, and the
value box3d_t is not a kind.
public static class KindNameUtil
- Inheritance
-
KindNameUtil
- Inherited Members
Methods
KindName(object)
The kind name of src's runtime type (see KindName(Type)).
public static string KindName(this object src)
Parameters
srcobjectthe object
Returns
- string
the kind name, or null when
srcis null
KindName(Type)
The kind name of type: the historical name for a value-type geometry
mirror, otherwise Name.
public static string KindName(this Type type)
Parameters
typeTypethe type
Returns
- string
the kind name, or null when
typeis null