Ejemplo n.º 1
0
 public void CustomOnPostDerive(ObjectOnPostDerive method)
 {
     if (this.Counter % 2 == 0)
     {
         method.Derivation.Mark(this);
     }
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 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;
        }