Exemplo n.º 1
0
        public DynamicProperty(IStringGetter getter, IStringSetter setter)
        {
            Ensure.That(getter, "getter").IsNotNull();
            Ensure.That(setter, "setter").IsNotNull();

            Getter = getter;
            Setter = setter;
        }
Exemplo n.º 2
0
        public DynamicProperty(IStringGetter getter, IStringSetter setter)
        {
            Ensure.That(getter, "getter").IsNotNull();
            Ensure.That(setter, "setter").IsNotNull();

            Getter = getter;
            Setter = setter;
        }
Exemplo n.º 3
0
        public DynamicProperty(string name, IStringGetter getter, IStringSetter setter)
        {
            Ensure.That(name, "name").IsNotNullOrWhiteSpace();
            Ensure.That(getter, "getter").IsNotNull();
            Ensure.That(setter, "setter").IsNotNull();

            Name   = name;
            Getter = getter;
            Setter = setter;
        }
Exemplo n.º 4
0
        public DynamicProperty(string name, IStringGetter getter, IStringSetter setter)
        {
            Ensure.String.IsNotNullOrWhiteSpace(name, nameof(name));
            Ensure.Any.IsNotNull(getter, nameof(getter));
            Ensure.Any.IsNotNull(setter, nameof(setter));

            Name   = name;
            Getter = getter;
            Setter = setter;
        }
Exemplo n.º 5
0
        public DynamicProperty(string name, IStringGetter getter, IStringSetter setter)
        {
            Ensure.That(name, "name").IsNotNullOrWhiteSpace();
            Ensure.That(getter, "getter").IsNotNull();
            Ensure.That(setter, "setter").IsNotNull();

            Name = name;
            Getter = getter;
            Setter = setter;
        }
Exemplo n.º 6
0
 public DynamicProperty()
 {
     Name   = null;
     Getter = new FakeStringGetter();
     Setter = new FakeStringSetter();
 }
Exemplo n.º 7
0
 public DbStringSetter(IStringSetter IStringSetter)
 {
     this.IStringSetter = IStringSetter;
 }
Exemplo n.º 8
0
 public DynamicProperty()
 {
     Name = null;
     Getter = new FakeStringGetter();
     Setter = new FakeStringSetter();
 }