Exemple #1
0
 public void CustomOnPostDerive(ObjectOnPostDerive method)
 {
     if (this.Counter % 2 == 0)
     {
         method.Derivation.Mark(this);
     }
 }
        public static void BaseOnPostDerive(this Transitional @this, ObjectOnPostDerive method)
        {
            if (@this.CurrentObjectState != null && [email protected](@this.LastObjectState))
            {
                @this.PreviousObjectState = @this.LastObjectState;
            }

            @this.LastObjectState = @this.CurrentObjectState;
        }
Exemple #3
0
        public static void BaseOnPostDerive(this Transitional @this, ObjectOnPostDerive method)
        {
            if (@this.CurrentObjectState != null && [email protected](@this.LastObjectState))
            {
                @this.PreviousObjectState = @this.LastObjectState;
            }

            @this.LastObjectState = @this.CurrentObjectState;

            @this.DeniedPermissions = @this.CurrentObjectState?.DeniedPermissions;
        }