IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Reflection.Writer Namespace Reference

Classes

class  ByteBuffer
 
class  CryptographicHashProvider
 Provides cryptographic operations.
 
class  MetadataWriter
 
class  ModuleResourceSectionBuilder
 Implements a ResourceSectionBuilder for writing IKVM reflection resource section data. More...
 
class  ModuleWriter
 
class  ResourceDirectoryEntry
 
struct  RESOURCEHEADER
 
class  SkipStream
 Read-only stream that presents a windowed view of another stream. More...
 
class  VersionInfo
 

Functions

readonly record struct OrdinalOrName (ushort Ordinal, string Name)
 

Function Documentation

◆ OrdinalOrName()

readonly record struct IKVM.Reflection.Writer.OrdinalOrName ( ushort Ordinal,
string Name )

Initializes a new instance.

Parameters
ordinal

Initializes a new instance.

Parameters
name

Returns whether or not this ordinal is greater than the other ordinal.

Parameters
other
Returns

Definition at line 29 of file OrdinalOrName.cs.

30 {
31
36 internal OrdinalOrName(ushort ordinal) :
37 this(ordinal, null)
38 {
39
40 }
41
46 internal OrdinalOrName(string name) :
47 this(0xFFFF, name)
48 {
49
50 }
51
57 internal readonly bool IsGreaterThan(OrdinalOrName other)
58 {
59 if (Name != null)
60 return StringComparer.OrdinalIgnoreCase.Compare(Name, other.Name) > 0;
61 else
62 return Ordinal > other.Ordinal;
63 }
64
65 public readonly bool Equals(OrdinalOrName other)
66 {
67 return Ordinal == other.Ordinal && StringComparer.OrdinalIgnoreCase.Equals(Name, other.Name);
68 }
69
71 public override readonly int GetHashCode()
72 {
73 return Ordinal.GetHashCode() ^ StringComparer.OrdinalIgnoreCase.GetHashCode(Name);
74 }
75
76 }
global::java.lang.invoke.LambdaForm.Name Name
readonly record struct OrdinalOrName(ushort Ordinal, string Name)