microsoft\win32\registrykey.cs (40)
408BCLDebug.Assert(false, "Unexpected code path in RegistryKey::CreateSubKey");
630BCLDebug.Assert(index >= 0 && index < hkeyNames.Length, "index is out of range!");
631BCLDebug.Assert((((int)hKey) & 0xFFFFFFF0) == 0x80000000, "Invalid hkey value!");
1222BCLDebug.Assert(false, "[InternalGetValue] RegQueryValue returned ERROR_SUCCESS but gave a negative datasize");
1243BCLDebug.Assert(datasize==8, "datasize==8");
1257BCLDebug.Assert(datasize==4, "datasize==4");
1361BCLDebug.Assert(blob[nextNull] == (char)0, "blob[nextNull] should be 0");
1717BCLDebug.Assert(name!=null,"[FixupName]name!=null");
1855BCLDebug.Assert(checkMode == RegistryKeyPermissionCheck.Default, "Should be called from a key opened under default mode only!");
1856BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1857BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1867BCLDebug.Assert(checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow creating sub key under read-only key!");
1868BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1869BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1881BCLDebug.Assert(checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow creating sub key under read-only key!");
1882BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1883BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1898BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1899BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1911BCLDebug.Assert(checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow writing value to read-only key!");
1912BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1913BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1925BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1926BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1937BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1938BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1950BCLDebug.Assert(checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow writing value to read-only key!");
1951BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1952BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1965BCLDebug.Assert(checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow creating value under read-only key!");
1966BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1967BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1981BCLDebug.Assert(item == null, "CheckKeyReadPermission should never have a non-null item parameter!");
1982BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
1983BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
1994BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
2023BCLDebug.Assert(subKeyCheck == RegistryKeyPermissionCheck.Default, "subKeyCheck should be Default (unused)");
2052BCLDebug.Assert(subKeyWritable == false, "subKeyWritable should be false (unused)");
2067BCLDebug.Assert(false, "CheckPermission default switch case should never be hit!");
2131BCLDebug.Assert(false, "unexpected code path");
system\Runtime\InteropServices\Variant.cs (43)
334BCLDebug.Assert(IsEmpty, "variant");
363BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
376BCLDebug.Assert(VariantType == VarEnum.VT_I1, "variant");
380BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
390BCLDebug.Assert(VariantType == VarEnum.VT_I2, "variant");
394BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
404BCLDebug.Assert(VariantType == VarEnum.VT_I4, "variant");
408BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
418BCLDebug.Assert(VariantType == VarEnum.VT_I8, "variant");
422BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
432BCLDebug.Assert(VariantType == VarEnum.VT_UI1, "variant");
436BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
446BCLDebug.Assert(VariantType == VarEnum.VT_UI2, "variant");
450BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
460BCLDebug.Assert(VariantType == VarEnum.VT_UI4, "variant");
464BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
474BCLDebug.Assert(VariantType == VarEnum.VT_UI8, "variant");
478BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
488BCLDebug.Assert(VariantType == VarEnum.VT_INT, "variant");
492BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
502BCLDebug.Assert(VariantType == VarEnum.VT_UINT, "variant");
506BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
516BCLDebug.Assert(VariantType == VarEnum.VT_BOOL, "variant");
520BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
530BCLDebug.Assert(VariantType == VarEnum.VT_ERROR, "variant");
534BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
544BCLDebug.Assert(VariantType == VarEnum.VT_R4, "variant");
548BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
558BCLDebug.Assert(VariantType == VarEnum.VT_R8, "variant");
562BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
572BCLDebug.Assert(VariantType == VarEnum.VT_DECIMAL, "variant");
579BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
591BCLDebug.Assert(VariantType == VarEnum.VT_CY, "variant");
595BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
605BCLDebug.Assert(VariantType == VarEnum.VT_DATE, "variant");
609BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
619BCLDebug.Assert(VariantType == VarEnum.VT_BSTR, "variant");
623BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
633BCLDebug.Assert(VariantType == VarEnum.VT_UNKNOWN, "variant");
639BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
652BCLDebug.Assert(VariantType == VarEnum.VT_DISPATCH, "variant");
658BCLDebug.Assert(IsEmpty, "variant"); // The setter can only be called once as VariantClear might be needed otherwise
673BCLDebug.Assert(VariantType == (VarEnum.VT_BYREF | VarEnum.VT_VARIANT), "variant");
system\runtime\remoting\objref.cs (11)
361BCLDebug.Assert(null != sinks, "null != sinks");
437BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef");
591BCLDebug.Assert(CanSmuggle(), "Caller should have made sure that CanSmuggle() was true first.");
728BCLDebug.Assert(null != uri, "null != uri");
790BCLDebug.Assert((null != typeName) && (null != assemName), "non-null values expected");
801BCLDebug.Assert(serverType!=null, "bad objRef!");
872BCLDebug.Assert(
933BCLDebug.Assert(xadData != null, "bad objRef?");
946BCLDebug.Assert(xadData != null, "bad objRef?");
962BCLDebug.Assert(idObj != null,"idObj != null");
969BCLDebug.Assert(null != obj, "Identity not setup correctly");
system\runtime\remoting\remotingservices.cs (14)
1223BCLDebug.Assert(null != idObj,"null != idObj");
1251BCLDebug.Assert(serverID.ServerType.IsMarshalByRef,
1282BCLDebug.Assert(IsTransparentProxy(obj), "Unexpected server");
1342BCLDebug.Assert(ObjRef.IsWellFormed(idObj.ObjectRef),
1405BCLDebug.Assert(
1415BCLDebug.Assert(IsTransparentProxy(proxy),"IsTransparentProxy(proxy)");
1470BCLDebug.Assert(null != proxy && IsTransparentProxy(proxy),"null != proxy && IsTransparentProxy(proxy)");
1516BCLDebug.Assert(IsTransparentProxy(proxy),"IsTransparentProxy(proxy)");
1523BCLDebug.Assert(null != realProxy,"null != realProxy");
1559BCLDebug.Assert(
1650BCLDebug.Assert(null != url,"null != url");
1663BCLDebug.Assert(null != url,"null != url");
1691BCLDebug.Assert(null != idObj,"null != idObj");
1733BCLDebug.Assert(rp != null, "Shouldn't be called with null real proxy.");