示例#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);
        }
示例#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;
        }