dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Model

ObjectId Class

Wraps the string and numeric possibilities of ObjectIds from ArcGIS.

public class ObjectId : System.IEquatable<dymaptic.GeoBlazor.Core.Model.ObjectId>

Inheritance System.Object 🡒 ObjectId

Implements System.IEquatable<ObjectId>

Constructors

ObjectId(long) Constructor

Constructor for ObjectId that takes a numeric (long) value.

public ObjectId(long numericVal);

Parameters

numericVal System.Int64

ObjectId(string) Constructor

Wraps the string and numeric possibilities of ObjectIds from ArcGIS.

public ObjectId(string stringVal);

Parameters

stringVal System.String

The string value of the ObjectId.

Properties

ObjectId.NumericVal Property

The numeric value of the ObjectId, if applicable.

public System.Nullable<long> NumericVal { get; }

Property Value

System.Nullable<System.Int64>

ObjectId.StringVal Property

The string value of the ObjectId. If the ObjectId is numeric, this will be the string representation of the number.

public string StringVal { get; }

Property Value

System.String

Methods

ObjectId.Equals(ObjectId) Method

Equality check for ObjectId. Two ObjectIds are equal if their string values are equal, ignoring case.

public bool Equals(dymaptic.GeoBlazor.Core.Model.ObjectId? other);

Parameters

other ObjectId

Returns

System.Boolean

ObjectId.Equals(object) Method

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj);

Parameters

obj System.Object

The object to compare with the current object.

Returns

System.Boolean
true if the specified object is equal to the current object; otherwise, false.

ObjectId.GetHashCode() Method

Serves as the default hash function.

public override int GetHashCode();

Returns

System.Int32
A hash code for the current object.

ObjectId.ToString() Method

Returns a string that represents the current object.

public override string ToString();

Returns

System.String
A string that represents the current object.

Operators

ObjectId.operator ==(ObjectId, ObjectId) Operator

Overrides the equality operator to compare ObjectIds.

public static bool operator ==(dymaptic.GeoBlazor.Core.Model.ObjectId? left, dymaptic.GeoBlazor.Core.Model.ObjectId? right);

Parameters

left ObjectId

right ObjectId

Returns

System.Boolean

ObjectId.implicit operator ObjectId(long) Operator

Implicit conversion from long to ObjectId. This will create a new ObjectId with the numeric value.

public static dymaptic.GeoBlazor.Core.Model.ObjectId implicit operator dymaptic.GeoBlazor.Core.Model.ObjectId(long numericVal);

Parameters

numericVal System.Int64

Returns

ObjectId

ObjectId.implicit operator ObjectId(string) Operator

Implicit conversion from string to ObjectId. This will create a new ObjectId with the string value.

public static dymaptic.GeoBlazor.Core.Model.ObjectId implicit operator dymaptic.GeoBlazor.Core.Model.ObjectId(string stringVal);

Parameters

stringVal System.String

Returns

ObjectId

ObjectId.implicit operator long(ObjectId) Operator

Implicit conversion from ObjectId to long. If the ObjectId is not numeric, this will return 0.

public static long implicit operator long(dymaptic.GeoBlazor.Core.Model.ObjectId objectId);

Parameters

objectId ObjectId

Returns

System.Int64

ObjectId.implicit operator string(ObjectId) Operator

Implicit conversion from ObjectId to string. If the ObjectId is numeric, this will return the string representation of the number.

public static string implicit operator string(dymaptic.GeoBlazor.Core.Model.ObjectId objectId);

Parameters

objectId ObjectId

Returns

System.String

ObjectId.operator !=(ObjectId, ObjectId) Operator

Overrides the inequality operator to compare ObjectIds.

public static bool operator !=(dymaptic.GeoBlazor.Core.Model.ObjectId? left, dymaptic.GeoBlazor.Core.Model.ObjectId? right);

Parameters

left ObjectId

right ObjectId

Returns

System.Boolean