EqualsCaseSensitive() private method

private EqualsCaseSensitive ( void szLhs, void szRhs, int cSz ) : bool
szLhs void
szRhs void
cSz int
return bool
示例#1
0
 internal unsafe bool Equals(Utf8String s)
 {
     if ((IntPtr)this.m_pStringHeap == IntPtr.Zero)
     {
         return(s.m_StringHeapByteLength == 0);
     }
     if (s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0)
     {
         return(Utf8String.EqualsCaseSensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength));
     }
     return(false);
 }
示例#2
0
 internal bool Equals(Utf8String s)
 {
     if (this.m_pStringHeap == null)
     {
         return(s.m_StringHeapByteLength == 0);
     }
     return(s.m_StringHeapByteLength == this.m_StringHeapByteLength && this.m_StringHeapByteLength != 0 && Utf8String.EqualsCaseSensitive(s.m_pStringHeap, this.m_pStringHeap, this.m_StringHeapByteLength));
 }