internal bool bUseUserOverrides; // True if we want user overrides.
// Static invariant for the invariant locale
- internal static CalendarData Invariant;
+ internal static readonly CalendarData Invariant = CreateInvariant();
// Private constructor
private CalendarData() { }
- // Invariant constructor
- static CalendarData()
+ // Invariant factory
+ private static CalendarData CreateInvariant()
{
// Set our default/gregorian US calendar data
// Calendar IDs are 1-based, arrays are 0 based.
invariant.bUseUserOverrides = false;
- // Calendar was built, go ahead and assign it...
- Invariant = invariant;
+ return invariant;
}
//
*/
//This class contains only static members and does not need to be serializable.
internal static class Registry {
- static Registry()
- {
- }
/**
* Current User Key.
internal bool bUseUserOverrides ; // True if we want user overrides.
// Static invariant for the invariant locale
- internal static CalendarData Invariant;
+ internal static readonly CalendarData Invariant = CreateInvariant();
// Private constructor
private CalendarData() {}
- // Invariant constructor
- static CalendarData()
+ // Invariant factory
+ private static CalendarData CreateInvariant()
{
-
// Set our default/gregorian US calendar data
// Calendar IDs are 1-based, arrays are 0 based.
CalendarData invariant = new CalendarData();
invariant.bUseUserOverrides = false;
- // Calendar was built, go ahead and assign it...
- Invariant = invariant;
+ return invariant;
}
//
private static Hashtable hashByCodePage = Hashtable.Synchronized(new Hashtable());
- static EncodingTable()
- {
- }
-
// Find the data item by binary searching the table that we have in native.
// nativeCompareOrdinalWC is an internal-only function.
unsafe private static int internalGetCodePageFromName(String name) {
uint _numBytes; // No. of bytes transferred
NativeOverlapped* _pOVERLAP;
- static _IOCompletionCallback()
- {
- }
-
internal _IOCompletionCallback(IOCompletionCallback ioCompletionCallback)
{
_ioCompletionCallback = ioCompletionCallback;
internal class ThreadHelper
{
- static ThreadHelper() {}
-
Delegate _start;
Object _startArg = null;
ExecutionContext _executionContext = null;