Class BasePart
[DataContract]
[DataSerializer(typeof(BasePartDataSerializer))]
public sealed class BasePart : IEquatable<BasePart>
- Inheritance
-
BasePart
- Implements
Constructors
BasePart(AssetReference, Guid, Guid)
public BasePart(AssetReference basePartAsset, Guid basePartId, Guid instanceId)
Parameters
basePartAsset
AssetReferencebasePartId
GuidinstanceId
Guid
Properties
BasePartAsset
[DataMember(10)]
public AssetReference BasePartAsset { get; set; }
Property Value
BasePartId
[DataMember(20)]
public Guid BasePartId { get; init; }
Property Value
InstanceId
[DataMember(30)]
public Guid InstanceId { get; init; }
Property Value
Methods
Equals(BasePart)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BasePart other)
Parameters
other
BasePartAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ResolvePart(PackageSession)
public IIdentifiable ResolvePart(PackageSession session)
Parameters
session
PackageSession
Returns
Operators
operator ==(BasePart, BasePart)
public static bool operator ==(BasePart left, BasePart right)
Parameters
Returns
operator !=(BasePart, BasePart)
public static bool operator !=(BasePart left, BasePart right)