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