Class NcStreetType
A data type for a road, thoroughfare, or highway.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcStreetType : IEquatable<NcStreetType>
Properties
Category
A kind of street. NIEM reference is nc:StreetCategoryText
Declaration
[DataMember(Name = "category")]
public List<NcTextType> Category { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of street. NIEM reference is nc:StreetCategoryText |
Context
ncStreetType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcStreetType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcStreetType.ContextEnum> | ncStreetType JSON-LD context |
Extension
An additional part of a street reference that follows the street category and post directional. NIEM reference is nc:StreetExtensionText
Declaration
[DataMember(Name = "extension")]
public List<NcTextType> Extension { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | An additional part of a street reference that follows the street category and post directional. NIEM reference is nc:StreetExtensionText |
Full
A complete reference for a street. NIEM reference is nc:StreetFullText
Declaration
[DataMember(Name = "full")]
public List<NcTextType> Full { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A complete reference for a street. NIEM reference is nc:StreetFullText |
Name
A name of a street. NIEM reference is nc:StreetName
Declaration
[DataMember(Name = "name")]
public List<NcProperNameTextType> Name { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcProperNameTextType> | A name of a street. NIEM reference is nc:StreetName |
Number
A number that identifies a particular unit or location within a street. NIEM reference is nc:StreetNumberText
Declaration
[DataMember(Name = "number")]
public List<NcTextType> Number { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A number that identifies a particular unit or location within a street. NIEM reference is nc:StreetNumberText |
Postdirectional
A direction that appears after a street name. NIEM reference is nc:StreetPostdirectionalText
Declaration
[DataMember(Name = "postdirectional")]
public List<NcTextType> Postdirectional { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A direction that appears after a street name. NIEM reference is nc:StreetPostdirectionalText |
Predirectional
A direction that appears before a street name. NIEM reference is nc:StreetPredirectionalText
Declaration
[DataMember(Name = "predirectional")]
public List<NcTextType> Predirectional { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A direction that appears before a street name. NIEM reference is nc:StreetPredirectionalText |
Methods
Equals(NcStreetType)
Returns true if NcStreetType instances are equal
Declaration
public bool Equals(NcStreetType other)
Parameters
Type | Name | Description |
---|---|---|
NcStreetType | other | Instance of NcStreetType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcStreetType, NcStreetType)
Declaration
public static bool operator ==(NcStreetType left, NcStreetType right)
Parameters
Type | Name | Description |
---|---|---|
NcStreetType | left | |
NcStreetType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcStreetType, NcStreetType)
Declaration
public static bool operator !=(NcStreetType left, NcStreetType right)
Parameters
Type | Name | Description |
---|---|---|
NcStreetType | left | |
NcStreetType | right |
Returns
Type | Description |
---|---|
System.Boolean |