コード例 #1
0
        public PropertyInterceptionArgs(object instance, PropertyInfo property, object value)
            : base(instance, property, value)
        {
            var getter = property.GetGetMethod(nonPublic: true);

            if (getter != null)
            {
                _getter = DelegateFactory.CreateGetter(instance, getter);
            }

            var setter = property.GetSetMethod(nonPublic: true);

            if (setter != null)
            {
                _setter = DelegateFactory.CreateSetter(instance, setter);
            }
        }