System.Xml.Schema.XmlSchemaInference.DateTime C# (CSharp) 메소드

DateTime() 정적인 개인적인 메소드

static private DateTime ( string s, bool bDate, bool bTime ) : int
s string
bDate bool
bTime bool
리턴 int
            internal static int DateTime(string s, bool bDate, bool bTime)
            {
                try
                {
                    XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind);
                }
                catch (FormatException)
                {
                    return TF_string;
                }
                if (bDate && bTime)
                    return TF_dateTime | TF_string;
                else if (bDate)
                    return TF_date | TF_string;
                else if (bTime)
                    return TF_time | TF_string;
                else
                {
                    Debug.Assert(false, "Expected date, time or dateTime");
                    return TF_string;
                }
            }
            XmlSchemaElement CreateNewElementforChoice(XmlSchemaElement copyElement)