/// <summary> /// Returns a hash code for this s_instance. /// </summary> /// <returns> /// A hash code for this s_instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { int inputDefinitionHash = IOItemDefinition.GetHashCode(); int mappedToHash = MappedTo.GetHashCode(); return(inputDefinitionHash ^ mappedToHash); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(MappedTo != null ? MappedTo.ToStepValue() : "$"); parameters.Add(Opacity != null ? Opacity.ToStepValue() : "$"); parameters.Add(Colours != null ? Colours.ToStepValue() : "$"); parameters.Add(ColourIndex != null ? ColourIndex.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Maps != null ? Maps.ToStepValue() : "$"); parameters.Add(MappedTo != null ? MappedTo.ToStepValue() : "$"); parameters.Add(TexCoords != null ? TexCoords.ToStepValue() : "$"); parameters.Add(TexCoordIndex != null ? TexCoordIndex.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() => 397 ^ MappedFrom.GetHashCode() ^ MappedTo.GetHashCode();
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { return(397 ^ MappedFrom.GetHashCode() ^ MappedTo.GetHashCode()); }