public XElement ToXml(XElement namespaceDeclarationsElement) { var xExplicitMember = new XElement(Namespaces.Xbrldi + "explicitMember"); xExplicitMember.Value = MemberName.ToColonSeparated(namespaceDeclarationsElement); xExplicitMember.Add(new XAttribute("dimension", DimensionName.ToColonSeparated(namespaceDeclarationsElement))); return xExplicitMember; }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DimensionName.Length != 0) { hash ^= DimensionName.GetHashCode(); } if (Time != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Time); } if (Length != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length); } if (Mass != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Mass); } if (Current != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Current); } if (Temperature != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Temperature); } if (Substance != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Substance); } if (LuminousIntensity != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LuminousIntensity); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override void MakeSchemaCompliant() { base.MakeSchemaCompliant(); DimensionName.MakeSchemaCompliant(); DimensionSize.MakeSchemaCompliant(); }