11 public struct DelegateHolder<T1>
15 currentDelegate = delegateValue;
20 if (delegateHolder.currentDelegate == null)
27 if (delegateHolder.currentDelegate == null)
28 return delegateHolder;
30 return new DelegateHolder<T1>((DelegateType)Delegate.Remove(delegateHolder.currentDelegate, delegateValue));
37 public delegate
void DelegateType(T1 param);
39 private DelegateType currentDelegate;
43 if (currentDelegate != null)
44 currentDelegate(param);
53 public DelegateType Set
57 currentDelegate = value;
67 public DelegateType AddLast
71 if (currentDelegate == null)
72 currentDelegate = value;
74 currentDelegate += value;
84 public DelegateType AddFirst
88 if (currentDelegate == null)
89 currentDelegate = value;
91 currentDelegate = (DelegateType)Delegate.Combine(value, currentDelegate);
DelegateHolder(DelegateType delegateValue)
Delegate for a RenderPass action used by Effects.RenderPass.StartPass and Effects.RenderPass.EndPass.