Beispiel #1
0
        protected Module(BaseContainer container)
        {
            if (container == null)
            {
                throw new ArgumentNullException(nameof(container));
            }

            var actualMember = container.Member.GetMember;

            _setVal = MemberUtils.GetSetMethod(actualMember);
            _getVal = MemberUtils.GetGetMethod(actualMember);

            ModuleContainer = container;
        }
 public EasyField(FieldInfo field)
 {
     Field = field;
     Set   = new Set(MemberUtils.GetSetMethod(field));
     Get   = new Get(MemberUtils.GetGetMethod(field));
 }