1 instantiation of Id
PresentationCore (1)
System\Windows\BinaryFormat\Id.cs (1)
19
public static implicit operator Id(int value) =>
new
(value);
34 references to Id
PresentationCore (34)
System\Windows\BinaryFormat\ArrayInfo.cs (2)
20
public
Id
ObjectId { get; }
23
public ArrayInfo(
Id
objectId, Count length)
System\Windows\BinaryFormat\ArrayRecord.cs (1)
37
public
Id
ObjectId => ArrayInfo.ObjectId;
System\Windows\BinaryFormat\BinaryLibrary.cs (2)
21
public
Id
LibraryId { get; }
24
public BinaryLibrary(
Id
libraryId, string libraryName)
System\Windows\BinaryFormat\BinaryObjectString.cs (2)
21
public
Id
ObjectId { get; }
26
public BinaryObjectString(
Id
objectId, string value)
System\Windows\BinaryFormat\ClassInfo.cs (2)
21
public
Id
ObjectId { get; }
25
public ClassInfo(
Id
objectId, string name, IReadOnlyList<string> memberNames)
System\Windows\BinaryFormat\ClassRecord.cs (1)
25
public virtual
Id
ObjectId => ClassInfo.ObjectId;
System\Windows\BinaryFormat\ClassTypeInfo.cs (2)
21
public readonly
Id
LibraryId;
23
public ClassTypeInfo(string typeName,
Id
libraryId)
System\Windows\BinaryFormat\ClassWithId.cs (4)
24
public override
Id
ObjectId { get; }
30
public
Id
MetadataId { get; }
32
public ClassWithId(
Id
id, ClassRecord metadataClass, IReadOnlyList<object> memberValues)
64
public static implicit operator
Id
(ClassWithId value) => value.MetadataId;
System\Windows\BinaryFormat\ClassWithMembersAndTypes.cs (3)
22
public
Id
LibraryId { get; }
26
Id
libraryId,
37
Id
libraryId,
System\Windows\BinaryFormat\Id.cs (9)
11
internal readonly struct Id : IEquatable<
Id
>
18
public static implicit operator int(
Id
value) => value._id;
19
public static implicit operator
Id
(int value) => new(value);
22
=> (obj is
Id
id && Equals(id)) || (obj is int value && value == _id);
24
public bool Equals(
Id
other) => _id == other._id || -1 * _id == other._id;
29
public static bool operator ==(
Id
left,
Id
right) => left.Equals(right);
31
public static bool operator !=(
Id
left,
Id
right) => !(left == right);
System\Windows\BinaryFormat\MemberReference.cs (3)
20
public
Id
IdRef { get; }
22
public MemberReference(
Id
idRef) => IdRef = idRef;
35
public static implicit operator
Id
(MemberReference value) => value.IdRef;
System\Windows\BinaryFormat\SerializationHeader.cs (3)
23
public
Id
RootId;
33
public
Id
MajorVersion;
38
public
Id
MinorVersion;