2 instantiations of Id
System.Private.Windows.Core (2)
System\Private\Windows\Core\Id.cs (2)
27public static Id Null => new(isNull: true); 31public static implicit operator Id(int value) => new(value);
55 references to Id
System.Private.Windows.Core (55)
System\Private\Windows\Core\BinaryFormat\Serializer\ArrayInfo.cs (2)
18public Id ObjectId { get; } 21public ArrayInfo(Id objectId, Count length)
System\Private\Windows\Core\BinaryFormat\Serializer\ArrayRecord.cs (1)
26public override Id ObjectId => _arrayInfo.ObjectId;
System\Private\Windows\Core\BinaryFormat\Serializer\ArraySingleObject.cs (1)
22public ArraySingleObject(Id objectId, IReadOnlyList<object?> arrayObjects)
System\Private\Windows\Core\BinaryFormat\Serializer\ArraySinglePrimitive.cs (1)
28public ArraySinglePrimitive(Id objectId, IReadOnlyList<T> arrayObjects)
System\Private\Windows\Core\BinaryFormat\Serializer\ArraySingleString.cs (1)
22internal ArraySingleString(Id objectId, IReadOnlyList<object?> arrayObjects, IReadOnlyRecordMap recordMap)
System\Private\Windows\Core\BinaryFormat\Serializer\BinaryLibrary.cs (3)
18public Id LibraryId { get; } 20Id IRecord.Id => LibraryId; 22public BinaryLibrary(Id libraryId, string libraryName)
System\Private\Windows\Core\BinaryFormat\Serializer\BinaryObjectString.cs (3)
18public Id ObjectId { get; } 20Id IRecord.Id => ObjectId; 24public BinaryObjectString(Id objectId, string value)
System\Private\Windows\Core\BinaryFormat\Serializer\ClassInfo.cs (2)
18public Id ObjectId { get; } 22public ClassInfo(Id objectId, string name, IReadOnlyList<string> memberNames)
System\Private\Windows\Core\BinaryFormat\Serializer\ClassRecord.cs (3)
24public override Id ObjectId => ClassInfo.ObjectId; 25public virtual Id LibraryId => Id.Null;
System\Private\Windows\Core\BinaryFormat\Serializer\ClassTypeInfo.cs (2)
19public readonly Id LibraryId; 21public ClassTypeInfo(string typeName, Id libraryId)
System\Private\Windows\Core\BinaryFormat\Serializer\ClassWithId.cs (6)
22public override Id ObjectId { get; } 23public override Id LibraryId { get; } 29public Id MetadataId { get; } 31public ClassWithId(Id id, ClassRecord metadataClass, IReadOnlyList<object?> memberValues) 40public ClassWithId(Id id, ClassRecord metadataClass, params object?[] memberValues) 69public static implicit operator Id(ClassWithId value) => value.MetadataId;
System\Private\Windows\Core\BinaryFormat\Serializer\ClassWithMembersAndTypes.cs (3)
20public override Id LibraryId { get; } 24Id libraryId, 34Id libraryId,
System\Private\Windows\Core\BinaryFormat\Serializer\IReadOnlyRecordMap.cs (1)
11IRecord this[Id id] { get; }
System\Private\Windows\Core\BinaryFormat\Serializer\IRecord.cs (2)
14Id Id => Id.Null;
System\Private\Windows\Core\BinaryFormat\Serializer\MemberReference.cs (3)
18public Id IdRef { get; } 20public MemberReference(Id idRef) => IdRef = idRef; 33public static implicit operator Id(MemberReference value) => value.IdRef;
System\Private\Windows\Core\BinaryFormat\Serializer\ObjectRecord.cs (2)
8public abstract Id ObjectId { get; } 10private protected override Id Id => ObjectId;
System\Private\Windows\Core\BinaryFormat\Serializer\Record.cs (3)
16Id IRecord.Id => Id; 18private protected virtual Id Id => Id.Null;
System\Private\Windows\Core\BinaryFormat\Serializer\RecordMap.cs (2)
13public IRecord this[Id id] => _recordMap[id]; 17Id id = record.Id;
System\Private\Windows\Core\BinaryFormat\Serializer\SerializationHeader.cs (3)
21public Id RootId; 31public Id MajorVersion; 36public Id MinorVersion;
System\Private\Windows\Core\BinaryFormat\Support\StringRecordsCollection.cs (1)
19public IRecord this[Id id] => _memberReferences[id];
System\Private\Windows\Core\Id.cs (10)
9internal readonly struct Id : IEquatable<Id> 27public static Id Null => new(isNull: true); 30public static implicit operator int(Id value) => value._isNull ? throw new InvalidOperationException() : value._id; 31public static implicit operator Id(int value) => new(value); 34=> (obj is Id id && Equals(id)) || (obj is int value && value == _id); 36public bool Equals(Id other) => _isNull == other._isNull && _id == other._id; 41public static bool operator ==(Id left, Id right) => left.Equals(right); 43public static bool operator !=(Id left, Id right) => !(left == right);