public MasterDataHttpClientException(string?message, Exception?innerException) : base(message, innerException) { }
public T Get <T>(string name, [MaybeNull] T defaultValue) { string?val = Get(name); return(val != null ? (T)Convert.ChangeType(val, typeof(T), MODIFIED_INVARIANT_CULTURE) : defaultValue); }
public AstToplevel(string? source, Position startPos, Position endPos) : base(source, startPos, endPos) { }
private void Add(string line) { Begin(); current += line; W(line); }
public IWebHostBuilder UseSetting(string key, string?value) { _config[key] = value; return(this); }
protected BadImageFormatException(SerializationInfo info, StreamingContext context) : base(info, context) { _fileName = info.GetString("BadImageFormat_FileName"); _fusionLog = info.GetString("BadImageFormat_FusionLog"); }
private WindowsUserConfigurationResponse(string?loginMode) { LoginMode = loginMode; }
public CertificateProviderConfig(IConfiguration config, string?prefix = null) : base(config, prefix) { }
#pragma warning disable CS8777 public static void ThrowIfNull <T>([NotNull] this T source, string argName, string?customErrorText = null) => Requires.NotNull(source, argName, customErrorText);
public TypeArgumentException(string?message, string?typeParamName) : base(message) { TypeParamName = typeParamName; }
public TypeArgumentException(string?message, Exception innerException) : base(message, innerException) { }
public TypeArgumentException(string?message) : base(message) { }
public static ClaimsPrincipal FrontendUser(string? role = null) { return CreateUser(role, DefaultClients.Frontend); }
public static ClaimsPrincipal ApiUser(string? role = null) { return CreateUser(role, "api"); }
public BadImageFormatException(string? message) : base(message) { HResult = HResults.COR_E_BADIMAGEFORMAT; }
public static T GetOrThrowIfDefault <T>([NotNull, NotNullIfNotNull("source")] this T source, string argName, string?customErrorText = null) where T : struct { if (Equals(source, default(T))) { throw ExceptionsHelper.ArgumentDefault(argName, customErrorText); } return(source); }
public BadImageFormatException(string? message, string? fileName, Exception? inner) : base(message, inner) { HResult = HResults.COR_E_BADIMAGEFORMAT; _fileName = fileName; }
public static T GetOrThrowIfNull <T>([NotNull, NotNullIfNotNull("source")] this T?source, string argName, string?customErrorText = null, ClassTypeRequirement <T> _ = default) where T : class => source ?? throw ExceptionsHelper.ArgumentNull(argName, customErrorText);
private GetExpressRouteCircuitPeeringResult( int? azureASN, string etag, string? gatewayManagerEtag, string? id, Outputs.Ipv6ExpressRouteCircuitPeeringConfigResponse? ipv6PeeringConfig, string? lastModifiedBy, Outputs.ExpressRouteCircuitPeeringConfigResponse? microsoftPeeringConfig, string? name, int? peerASN, string? peeringType, string? primaryAzurePort, string? primaryPeerAddressPrefix, string? provisioningState, Outputs.RouteFilterResponse? routeFilter, string? secondaryAzurePort, string? secondaryPeerAddressPrefix, string? sharedKey, string? state, Outputs.ExpressRouteCircuitStatsResponse? stats, int? vlanId) { AzureASN = azureASN; Etag = etag; GatewayManagerEtag = gatewayManagerEtag; Id = id; Ipv6PeeringConfig = ipv6PeeringConfig; LastModifiedBy = lastModifiedBy; MicrosoftPeeringConfig = microsoftPeeringConfig; Name = name; PeerASN = peerASN; PeeringType = peeringType; PrimaryAzurePort = primaryAzurePort; PrimaryPeerAddressPrefix = primaryPeerAddressPrefix; ProvisioningState = provisioningState; RouteFilter = routeFilter; SecondaryAzurePort = secondaryAzurePort; SecondaryPeerAddressPrefix = secondaryPeerAddressPrefix; SharedKey = sharedKey; State = state; Stats = stats; VlanId = vlanId; }
public static void ThrowIfPositive <T>(this T source, string argName, string?customErrorText = null) where T : struct, IConvertible, IComparable => Requires.NotPositive(source, argName, customErrorText);
public ReadOnlyElement(string name, string? value) : this(name) { _value = new ReadOnlyMemory<byte>(Encoding.UTF8.GetBytes(value)); }
public static void ThrowIfNotDefault <T>(this T source, string argName, string?customErrorText = null) => Requires.Default(source, argName, customErrorText);
public EqualWithMessageException(string?expected, string?actual, int expectedIndex, int actualIndex, string userMessage) : base(expected, actual, expectedIndex, actualIndex) { UserMessage = userMessage; }
/// <summary> /// Initializes a new instance of the EventSourceException class with a specified error message. /// </summary> public EventSourceException(string?message) : base(message) { }
/// <summary> /// Initializes a new instance of the <see cref="PostgreSqlObjectName"/> struct. /// </summary> /// <param name="schema">The schema.</param> /// <param name="name">The name.</param> public PostgreSqlObjectName(string? schema, string name) { Database = null; Schema = schema; Name = name; }
/// <summary> /// Initializes a new instance of the EventSourceException class with a specified error message /// and a reference to the inner exception that is the cause of this exception. /// </summary> public EventSourceException(string?message, Exception?innerException) : base(message, innerException) { }
public string?Get(string name, string?defaultValue) { return(Get(name) ?? defaultValue); }
public string ToString(string?format, IFormatProvider?formatProvider) => Value.ToString(format, formatProvider);
public static async Task <GitSubmoduleStatus?> GetCurrentSubmoduleChangesAsync(GitModule module, string?fileName, string?oldFileName, ObjectId?firstId, ObjectId?secondId) { Patch?patch = await module.GetSingleDiffAsync(firstId, secondId, fileName, oldFileName, "", GitModule.SystemEncoding, cacheResult : true).ConfigureAwait(false); return(ParseSubmodulePatchStatus(patch, module, fileName)); }
public MasterDataHttpClientException(string?message) : base(message) { }