Class JDriverLicenseRestrictionType
A data type for a restriction applicable to a driver license.
Implements
System.IEquatable<JDrivingRestrictionType>
System.IEquatable<JDriverLicenseRestrictionType>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JDriverLicenseRestrictionType : JDrivingRestrictionType, IEquatable<JDrivingRestrictionType>, IEquatable<JDriverLicenseRestrictionType>
Properties
Code
A category of a driving restriction on a license. NIEM reference is j:DriverLicenseRestrictionCode
Declaration
[DataMember(Name = "code")]
public List<AamvaD20DrivingRestrictionCodeType> Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AamvaD20DrivingRestrictionCodeType> | A category of a driving restriction on a license. NIEM reference is j:DriverLicenseRestrictionCode |
Context
jDriverLicenseRestrictionType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JDriverLicenseRestrictionType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JDriverLicenseRestrictionType.ContextEnum> | jDriverLicenseRestrictionType JSON-LD context |
Methods
Equals(JDriverLicenseRestrictionType)
Returns true if JDriverLicenseRestrictionType instances are equal
Declaration
public bool Equals(JDriverLicenseRestrictionType other)
Parameters
Type | Name | Description |
---|---|---|
JDriverLicenseRestrictionType | other | Instance of JDriverLicenseRestrictionType 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(JDriverLicenseRestrictionType, JDriverLicenseRestrictionType)
Declaration
public static bool operator ==(JDriverLicenseRestrictionType left, JDriverLicenseRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JDriverLicenseRestrictionType | left | |
JDriverLicenseRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JDriverLicenseRestrictionType, JDriverLicenseRestrictionType)
Declaration
public static bool operator !=(JDriverLicenseRestrictionType left, JDriverLicenseRestrictionType right)
Parameters
Type | Name | Description |
---|---|---|
JDriverLicenseRestrictionType | left | |
JDriverLicenseRestrictionType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>
System.IEquatable<T>