The Labs \ Source Viewer \ SSCLI \ System.Globalization \ CalendarTableData

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. // The file is autogenerated by nlpgen.pl.
  16. // DO NOT EDIT THIS FILE MANUALLY.
  17. // DO NOT EDIT THIS FILE MANUALLY.
  18. // DO NOT EDIT THIS FILE MANUALLY.
  19. namespace System.Globalization
  20. {
  21.    
  22.     using System;
  23.     using System.IO;
  24.     using System.Runtime.InteropServices;
  25.     using System.Text;
  26.     using System.Collections;
  27.    
  28.    
  29.     //
  30.     //
  31.    
  32.     //
  33.     // The list of data fields:
  34.     // Keep the fields that can be overridden in the beginning of the fields
  35.     // so that we can check if user override values should be read quickly.
  36.     //
  37.    
  38.    
  39.     // StructLayout is needed here otherwise compiler can re-arrange the fields.
  40.     [StructLayout(LayoutKind.Sequential, Pack = 2)]
  41.     internal struct CalendarTableData
  42.     {
  43.         internal ushort iCalendar;
  44.         // Calendar #. 1-based. (record 0 is cal. 1, record 12 is cal 13
  45.         internal ushort iTwoDigitYearMax;
  46.         // Max 2 digit year (for Y2K bug data entry)
  47.         internal uint saShortDate;
  48.         // Short Data format, default first
  49.         internal uint saYearMonth;
  50.         // Year/Month Data format, default first
  51.         internal uint saLongDate;
  52.         // Long Data format, default first
  53.         internal uint saEraNames;
  54.         // Names of Eras
  55.         internal uint waaEraRanges;
  56.         // Era Range Data: [0] - Era # (index to era names); [1] - Era start year; [2] - Start Month; [3] - Start Day; [4] - offset to Gregorian year (1988); [5] minimum era year for this era
  57.         internal uint saDayNames;
  58.         // Day Names, null to use locale data, starts on Sunday
  59.         internal uint saAbbrevDayNames;
  60.         // Abbrev Day Names, null to use locale data, starts on Sunday
  61.         internal uint saMonthNames;
  62.         // Month Names (13)
  63.         internal uint saAbbrevMonthNames;
  64.         // Abbrev Month Names (13)
  65.         internal ushort iCurrentEra;
  66.         //
  67.         internal ushort iFormatFlags;
  68.         // The DateTime formatting/parsing flag for this calendar. It indcates things like if genitive form or leap year month is used.
  69.         internal uint sName;
  70.         //
  71.         internal uint sMonthDay;
  72.         //
  73.         internal uint saAbbrevEraNames;
  74.         //
  75.         internal uint saAbbrevEnglishEraNames;
  76.         //
  77.         internal uint saLeapYearMonthNames;
  78.         // Multiple strings for the month names in a leap year.
  79.         internal uint saSuperShortDayNames;
  80.         // Super short Day of week names
  81.         internal ushort _padding1;
  82.         // padding to keep record 64 bit aligned
  83.         internal ushort _padding2;
  84.         // padding to keep record 64 bit aligned
  85.         // Constants
  86.         internal const int sizeofDataFields = 72;
  87.         // Size of our data record (64-bit(QWORD) aligned)
  88.     }
  89. }

Developer Fusion