18 references to Compare
System.DirectoryServices (18)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (4)
927
if (Utils.
Compare
(objectCategoryValue, 0, ocValue.Length, ocValue, 0, ocValue.Length) == 0)
936
if (Utils.
Compare
(objectCategoryValue, 0, ocValue.Length, ocValue, 0, ocValue.Length) != 0)
944
Debug.Assert(fromSite != null && Utils.
Compare
(fromSite, 0, 3, "CN=", 0, 3) == 0);
1023
Debug.Assert(otherSite != null && Utils.
Compare
(otherSite, 0, 3, "CN=", 0, 3) == 0);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (1)
718
Debug.Assert(rdn != null && Utils.
Compare
(rdn, 0, 3, "CN=", 0, 3) == 0);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (1)
374
Debug.Assert(rdn != null && Utils.
Compare
(rdn, 0, 3, "CN=", 0, 3) == 0);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (1)
76
Debug.Assert(rdn != null && Utils.
Compare
(rdn, 0, 3, "CN=", 0, 3) == 0);
System\DirectoryServices\ActiveDirectory\Utils.cs (10)
329
if ((objectCategoryValue.Length >= ntdsdsa.Length) && (Utils.
Compare
(objectCategoryValue, 0, ntdsdsa.Length, ntdsdsa, 0, ntdsdsa.Length) == 0))
388
if ((objectCategoryValue.Length >= ntdsdsa.Length) && (Utils.
Compare
(objectCategoryValue, 0, ntdsdsa.Length, ntdsdsa, 0, ntdsdsa.Length) == 0))
1187
if ((propertyNameWithRangeInfo.Length >= propertyToLoad.Length) && (Utils.
Compare
(propertyToLoad, 0, propertyToLoad.Length, propertyNameWithRangeInfo, 0, propertyToLoad.Length) != 0))
1484
if ((objectCategory.Length >= objectCategoryValue.Length) && (Utils.
Compare
(objectCategory, 0, objectCategoryValue.Length, objectCategoryValue, 0, objectCategoryValue.Length) == 0))
1492
if ((objectCategory.Length >= roObjectCategoryValue.Length) && (Utils.
Compare
(objectCategory, 0, roObjectCategoryValue.Length, roObjectCategoryValue, 0, roObjectCategoryValue.Length) == 0))
1514
if ((property.Length >= PropertyManager.MsDSHasInstantiatedNCs.Length) && (Utils.
Compare
(property, 0, PropertyManager.MsDSHasInstantiatedNCs.Length, PropertyManager.MsDSHasInstantiatedNCs, 0, PropertyManager.MsDSHasInstantiatedNCs.Length) == 0))
1539
if (((dnString.Length - 13) >= partitionName!.Length) && (Utils.
Compare
(dnString, 13, partitionName.Length, partitionName, 0, partitionName.Length) == 0))
1560
if ((!foundPartitionEntry) && ((propertyName.Length >= propertyWithRangeInfo.Length) && (Utils.
Compare
(propertyName, 0, propertyWithRangeInfo.Length, propertyWithRangeInfo, 0, propertyWithRangeInfo.Length) != 0)))
1676
if (((dnString.Length - 13) >= partitionName!.Length) && (Utils.
Compare
(dnString, 13, partitionName.Length, partitionName, 0, partitionName.Length) == 0))
1694
if ((!foundPartitionEntry) && ((propertyName.Length >= propertyWithRangeInfo2.Length) && (Utils.
Compare
(propertyName, 0, propertyWithRangeInfo2.Length, propertyWithRangeInfo2, 0, propertyWithRangeInfo2.Length) != 0)))
System\DirectoryServices\DirectoryEntry.cs (1)
884
if (System.DirectoryServices.ActiveDirectory.Utils.
Compare
(childPath, 0, parentPath.Length, parentPath, 0, parentPath.Length) == 0)