/// <inheritdoc/> public override string?ToString() { return(DataType switch { StormGameEventDataType.Bool => Boolean?.ToString(), StormGameEventDataType.Integer32 => Integer32?.ToString(), StormGameEventDataType.UnsignedInteger32 => UnsignedInteger32?.ToString(), StormGameEventDataType.UnsignedInteger64 => UnsignedInteger64?.ToString(), StormGameEventDataType.Blob => Blob != null ? @$ "" "{Blob}" "" : null, StormGameEventDataType.Array => Array != null ? $"[{string.Join(", ", Array.Select(i => i?.ToString()))}]" : null, StormGameEventDataType.Structure => Structure != null ? $"{{{string.Join(", ", Structure.Select(i => i?.ToString()))}}}" : null, StormGameEventDataType.BitArray => BitArray != null ? $"[{string.Join(", ", BitArray.Select(i => i.ToString()))}]" : null, _ => string.Empty, });
public static void TestUnsignedInteger64GetMutatorMinNullOptional() { const Dhgms.Nucleotide.Model.Info.CollectionType CollectionType = Dhgms.Nucleotide.Model.Info.CollectionType.GenericLinkedList; const string Name = "Name"; const string Description = "Description"; const bool Optional = false; UnsignedInteger64 instance = new UnsignedInteger64( CollectionType, Name, Description, Optional, null, 255, true, null); Console.Write(instance.GetMutator()); }
public static void TestUnsignedInteger64ConstructorBasicArguments() { const Dhgms.Nucleotide.Model.Info.CollectionType CollectionType = Dhgms.Nucleotide.Model.Info.CollectionType.GenericLinkedList; const string Name = "Name"; const string Description = "Description"; const bool Optional = false; UnsignedInteger64 instance = new UnsignedInteger64( CollectionType, Name, Description, Optional, null, null, true, null); Assert.Equal(CollectionType, instance.Collection); Assert.Equal(Name, instance.Name); Assert.Equal(Description, instance.Description); Assert.Equal(Optional, instance.Optional); }
public void Visit(UnsignedInteger64 value) { value.TypedValue = mBitsReader.ReadUInt64(value.BitsCount); }