Table of Contents

Class KindNameUtil

Namespace
Hi.Common
Assembly
HiGeom.dll

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 (box3d_t, tri3d_t, dvec3d_t, box2d_t, vec3d_t, vec2d_t) while their kind names stay the historical Box3d, 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.

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

src object

the object

Returns

string

the kind name, or null when src is 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

type Type

the type

Returns

string

the kind name, or null when type is null