Example #1
0
        private MyBsonFieldTestClass CreateModel()
        {
            var c = new MyBsonFieldTestClass
            {
                MyString = "MyString",
                MyInternalPropertyNamed           = "InternalPropertyNamed",
                MyInternalPropertyNotSerializable = "InternalPropertyNotSerializable",
                MyInternalPropertySerializable    = "InternalPropertySerializable",
            };

            c.SetProtectedProperties("ProtectedProperties");
            c.SetPrivateProperties("PrivateProperty");

            return(c);
        }
Example #2
0
        private MyBsonFieldTestClass CreateModel()
        {
            var c = new MyBsonFieldTestClass
            {
                MyString = "MyString",
                MyInternalPropertyNamed = "InternalPropertyNamed",
                MyInternalPropertyNotSerializable = "InternalPropertyNotSerializable",
                MyInternalPropertySerializable = "InternalPropertySerializable",

            };

            c.SetProtectedProperties("ProtectedProperties");
            c.SetPrivateProperties("PrivateProperty");

            return c;
        }