//
//
- // check if the object has been allready disposed
+ // check if the object has been already disposed
//
if (m_disposed) return;
** culture the ID of the culture
** assembly the assembly which contains the sorting table.
**Exceptions:
- ** ArugmentNullException when the assembly is null
+ ** ArgumentNullException when the assembly is null
** ArgumentException if culture is invalid.
============================================================================*/
// Assembly constructor should be deprecated, we don't act on the assembly information any more
** name the name of the culture
** assembly the assembly which contains the sorting table.
**Exceptions:
- ** ArugmentNullException when the assembly is null
+ ** ArgumentNullException when the assembly is null
** ArgumentException if name is invalid.
============================================================================*/
// Assembly constructor should be deprecated, we don't act on the assembly information any more
}
else if ((!Char.IsWhiteSpace(ch)))
{
- // Anthyhing other than whitespace outside hashes is invalid
+ // Anything other than whitespace outside hashes is invalid
if (!foundStart || foundEnd)
{
return false;
}
if (result.Year != -1)
{
- // Aleady has a year suffix
+ // Already has a year suffix
result.SetBadDateTimeFailure();
return false;
}
//
// We have to check day of week before we adjust to the time zone.
- // Otherwise, the value of day of week may change after adjustting to the time zone.
+ // Otherwise, the value of day of week may change after adjusting to the time zone.
//
if (raw.dayOfWeek != -1)
{
}
// The constructor should always succeed because of the range check earlier in the function
- // Althought it is UTC, internally DateTimeOffset does not use this flag
+ // Although it is UTC, internally DateTimeOffset does not use this flag
result.parsedDate = new DateTime(utcTicks, DateTimeKind.Utc);
result.timeZoneOffset = TimeSpan.Zero;
}
**
**
**
-** Purpose: Exception class for Arthimatic Overflows.
+** Purpose: Exception class for Arithmetic Overflows.
**
**
=============================================================================*/
{
if (ch == 0)
{
- // Check if there's anthing left to get out of the fallback buffer
+ // Check if there's anything left to get out of the fallback buffer
ch = fallbackBuffer != null ? fallbackBuffer.InternalGetNextChar() : 0;
if (ch > 0)
{
}
// Don't want to Sleep(1) in this spin wait:
- // - Don't want to spin for that long, since a proper wait will follow when the spin wait fails. The artifical
+ // - Don't want to spin for that long, since a proper wait will follow when the spin wait fails. The artificial
// delay introduced by Sleep(1) will in some cases be much longer than desired.
// - Sleep(1) would put the thread into a wait state, and a proper wait will follow when the spin wait fails
// anyway, so it's preferable to put the thread into the proper wait state