Method | Description | |
---|---|---|
Equals ( object obj ) : bool |
Checks if an object is a Shape and has the same name as this shape
|
|
GetHashCode ( ) : int |
The hashcode of the shape is the hashcode of the name
|
|
GetPrimitiveType ( ) : string | ||
Shape ( |
Creates a shape with a reference to the model it's a part of, its name, and the json data of the shape pulled from the model. Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.
|
|
ToString ( ) : string |
String representation of the shape found by the name
|
Method | Description | |
---|---|---|
LookupListShapeName ( bool allowSubstitution ) : string |
Returns the name of a shape declared to be used by a list type, optionally allowing for substitution.
|
public Equals ( object obj ) : bool | ||
obj | object | The object to compare to |
return | bool |
public Shape ( |
||
model | The model that contains the shape | |
name | string | The name of the shape |
data | JsonData | The json object of the shape, pulled form the model json |
return | Json.LitJson |