示例#1
0
throw new ArgumentException(SR.Format(SR.InvalidBoundArgument, nameof(emSize), emSize, 0, "System.Single.MaxValue"), nameof(emSize));
 _ => throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmId))
示例#3
0
 _ => throw new ArgumentException(SR.Format(SR.InvalidAction, action)),
throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(contractName)), nameof(contractName));
 // Can't have both set
 throw new ArgumentException(SR.Format(SR.net_ambiguousbuffers, nameof(Buffer)));
示例#6
0
 ThowJsonException(SR.Format(SR.DeserializeUnableToConvertValue, propertyType), in reader, path);
throw new MemberAccessException(
          SR.Format(SR.Acc_CreateInterfaceEx, declaringType));
示例#8
0
throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode));
示例#9
0
 new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, str)) :
示例#10
0
throw new ArgumentException(SR.Format(SR.net_nodefaultcreds, authType), nameof(authType));
示例#11
0
throw new ArgumentException(SR.Format(SR.UnexpectedArrayLength, Size), nameof(id));
示例#12
0
throw new ArgumentException(SR.Format(SR.Arg_InvalidPath, path), nameof(assemblyPaths));
示例#13
0
throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag));
throw new ArgumentException(SR.Format(SR.InvalidObjectTypePassed, nameof(documentTypeToCreate), nameof(ServiceDocument)), nameof(documentTypeToCreate));
示例#15
0
throw new ArgumentException(SR.Format(SR.InvalidDirName, path), nameof(path));
示例#16
0
 _defaultReader = reader as DeserializingResourceReader ?? throw new ArgumentException(SR.Format(SR.NotSupported_WrongResourceReader_Type, reader.GetType()), nameof(reader));
示例#17
0
 _ => throw new SerializationException(SR.Format(SR.Serialization_TypeCode, code.ToString())),
示例#18
0
throw new ArgumentException(
          SR.Format(SR.Config_provider_must_implement_type,
示例#19
0
throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)access), nameof(access));
示例#20
0
 _ => throw new InvalidOperationException(SR.Format(SR.UnexpectedStringComparisonType, comparisonType))
示例#21
0
 _ => throw new ArgumentException(SR.Format(SR.UnknownSectionName, name), nameof(name)),
示例#22
0
throw new ArgumentException(SR.Format(SR.InvalidObjectTypePassed, nameof(itemTypeToCreate), nameof(SyndicationItem)), nameof(itemTypeToCreate));
示例#23
0
throw new CryptographicException(SR.Format(SR.WrongRootElement, KeyValueElementName, SignedXml.XmlDsigNamespaceUrl));
示例#24
0
 : throw new InvalidOperationException(SR.Format(SR.SimulatorPropertyInvalid, nameof(Port)));
示例#25
0
throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CAPI_Required, nameof(CspParameters)));
示例#26
0
throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
示例#27
0
throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.DocumentType));
示例#28
0
throw new ArgumentException(SR.Format(SR.EnumConverterInvalidValue, value, EnumType.Name));
示例#29
0
throw new JsonReaderException(SR.Format(SR.DeserializeUnableToConvertValue, state.PropertyPath, propertyType.FullName), reader.CurrentState);
示例#30
0
throw new ArgumentException(SR.Format(SR.Config_provider_must_implement_type, typeof(SettingsProvider)), nameof(provider));