System.DateTimeResult.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        internal void Init() {
            Year    = -1;
            Month   = -1;
            Day     = -1;
            fraction = -1;
            era = -1;
        }

Usage Example

Esempio n. 1
0
 internal static bool TryParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result) {
     result = DateTime.MinValue;
     DateTimeResult resultData = new DateTimeResult();       // The buffer to store the parsing result.
     resultData.Init();
     if (TryParseExact(s, format, dtfi, style, ref resultData)) {
         result = resultData.parsedDate;
         return true;
     }
     return false;
 }
All Usage Examples Of System.DateTimeResult::Init