Esempio n. 1
0
        public SerializationConventions()
        {
            DocType = new StringSerializationConvention(
                "$doctype",
                m => !m.IsAnonymous ? m.DocType.ToCamelCase() : null);

            DocNamespace = new StringSerializationConvention(
                "$docns",
                m => m.DocNamespace);

            DocVersion = new StringSerializationConvention(
                "$docver",
                m => m.DocVersion);
        }
        public SerializationConventions()
        {
            DocType = new StringSerializationConvention(
                "$doctype",
                m => !m.IsAnonymous ? m.DocType.ToCamelCase() : null);

            DocNamespace = new StringSerializationConvention(
                "$docns",
                m => m.DocNamespace);

            DocVersion = new StringSerializationConvention(
                "$docver",
                m => m.DocVersion);
        }