Пример #1
0
 /// <summary>Initializes a new dummy EncodingData instance.</summary>
 /// <param name="name">Encoding name.</param>
 /// <returns>A new EncodingData instance.</returns>
 private static FormatStringData ForNumeric(string name, string formatSpecifier, Type[] applicableTypes)
 {
     FormatStringData result = new FormatStringData();
     result.applicableTypes = applicableTypes;
     result.name = name;
     result.formatSpecifier = formatSpecifier;
     return result;
 }
Пример #2
0
        /// <summary>Initializes a new dummy EncodingData instance.</summary>
        /// <param name="name">Encoding name.</param>
        /// <returns>A new EncodingData instance.</returns>
        private static FormatStringData ForNumeric(string name, string formatSpecifier, Type[] applicableTypes)
        {
            FormatStringData result = new FormatStringData();

            result.applicableTypes = applicableTypes;
            result.name            = name;
            result.formatSpecifier = formatSpecifier;
            return(result);
        }