10 [__DynamicallyInvokable]
13 private string m_invalidCultureName;
15 private int? m_invalidCultureId;
23 [__DynamicallyInvokable]
26 [__DynamicallyInvokable]
29 return m_invalidCultureName;
33 private static string DefaultMessage =>
Environment.GetResourceString(
"Argument_CultureNotSupported");
35 private string FormatedInvalidCultureId
49 [__DynamicallyInvokable]
52 [__DynamicallyInvokable]
55 string message = base.Message;
56 if (m_invalidCultureId.HasValue || m_invalidCultureName !=
null)
58 string resourceString =
Environment.GetResourceString(
"Argument_CultureInvalidIdentifier", FormatedInvalidCultureId);
61 return resourceString;
70 [__DynamicallyInvokable]
72 : base(DefaultMessage)
78 [__DynamicallyInvokable]
87 [__DynamicallyInvokable]
89 : base(message, paramName)
96 [__DynamicallyInvokable]
98 : base(message, innerException)
107 : base(message, paramName)
109 m_invalidCultureId = invalidCultureId;
117 : base(message, innerException)
119 m_invalidCultureId = invalidCultureId;
126 [__DynamicallyInvokable]
128 : base(message, paramName)
130 m_invalidCultureName = invalidCultureName;
137 [__DynamicallyInvokable]
139 : base(message, innerException)
141 m_invalidCultureName = invalidCultureName;
148 : base(info, context)
150 m_invalidCultureId = (
int?)info.GetValue(
"InvalidCultureId", typeof(
int?));
151 m_invalidCultureName = (string)info.GetValue(
"InvalidCultureName", typeof(
string));
166 base.GetObjectData(info, context);
168 num = m_invalidCultureId;
169 info.AddValue(
"InvalidCultureId", num, typeof(
int?));
170 info.AddValue(
"InvalidCultureName", m_invalidCultureName, typeof(
string));
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
static string NewLine
Gets the newline string defined for this environment.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
CultureNotFoundException()
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with its mess...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
CultureNotFoundException(string paramName, string invalidCultureName, string message)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
Provides information about, and means to manipulate, the current environment and platform....
CultureNotFoundException(string paramName, string message)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
override void GetObjectData(SerializationInfo info, StreamingContext context)
Sets the T:System.Runtime.Serialization.SerializationInfo object with the parameter name and addition...
CultureNotFoundException(string message, int invalidCultureId, Exception innerException)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown when one of the arguments provided to a method is not valid.
override string Message
Gets the error message that explains the reason for the exception.
Allows an object to control its own serialization and deserialization.
CultureNotFoundException(string message, string invalidCultureName, Exception innerException)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Specifies that the class can be serialized.
CultureNotFoundException(string message)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with the spec...
virtual ? int InvalidCultureId
Gets the culture identifier that cannot be found.
CultureNotFoundException(string paramName, int invalidCultureId, string message)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
Provides information about a specific culture (called a locale for unmanaged code development)....
CultureNotFoundException(string message, Exception innerException)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class with a specif...
virtual string InvalidCultureName
Gets the culture name that cannot be found.
CultureNotFoundException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Globalization.CultureNotFoundException class using the spe...
The exception that is thrown when a method attempts to construct a culture that is not available.