Exemplo n.º 1
0
        // use this in Test Suite to check static information in structs/classes
        public static void StaticTest()
        {
            FtStandardDataType.StaticTest();
            FtStandardSequenceRedirectType.StaticTest();

            MetaSerialization.Formatting.BooleanStylesFormatter.StaticTest();
            MetaSerialization.Formatting.EndOfLineTypeFormatter.StaticTest();
            MetaSerialization.Formatting.EndOfLineAutoWriteTypeFormatter.StaticTest();
            MetaSerialization.Formatting.FieldPropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.HeadingConstraintFormatter.StaticTest();
            MetaSerialization.Formatting.LastLineEndedTypeFormatter.StaticTest();
            MetaSerialization.Formatting.MetaElementTypeFormatter.StaticTest();
            MetaSerialization.Formatting.MetaReferenceTypeFormatter.StaticTest();
            MetaSerialization.Formatting.PadAlignmentFormatter.StaticTest();
            MetaSerialization.Formatting.PadCharTypeFormatter.StaticTest();
            MetaSerialization.Formatting.QuotedTypeFormatter.StaticTest();
            MetaSerialization.Formatting.RootPropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.SequenceInvokationDelayFormatter.StaticTest();
            MetaSerialization.Formatting.SequenceItemPropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.SequencePropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.SequenceRedirectPropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.SubstitutionPropertyIdFormatter.StaticTest();
            MetaSerialization.Formatting.SubstitutionTypeFormatter.StaticTest();
            MetaSerialization.Formatting.TruncateTypeFormatter.StaticTest();
        }
Exemplo n.º 2
0
        private static bool TryFindConstructor(string dataTypeName, out int idx)
        {
            bool result = false;

            idx = -1;
            for (int i = 0; i < constructorList.Count; i++)
            {
                if (FtStandardDataType.SameName(constructorList[i].DataTypeName, dataTypeName))
                {
                    idx    = i;
                    result = true;
                    break;
                }
            }

            return(result);
        }