2 using System.Collections.Generic;
18 private void OnAccessDenied( Exception e,
bool write )
20 if ( !write && ReadAccessDenied != null )
22 if ( write && WriteAccessDenied != null )
26 protected void FMAssert( Action func,
bool write )
37 OnAccessDenied( e, write );
53 OnAccessDenied( e, write );
58 protected TR
FMAssert<TR>(Func<TR> func,
bool write, TR defaultVal)
69 OnAccessDenied( e, write );
87 OnAccessDenied( e, write );
97 return func( p1, p2 );
101 return func( p1, p2 );
103 catch ( Exception e )
105 OnAccessDenied( e, write );
void FMAssert(Action func, bool write)
Action< Exception > ReadAccessDenied
void FMAssert< TP1 >(Action< TP1 > func, bool write, TP1 p1)
Action< Exception > WriteAccessDenied
TR FMAssert< TP1, TR >(Func< TP1, TR > func, bool write, TR defaultVal, TP1 p1)
virtual void Initialize()
TR FMAssert< TP1, TP2, TR >(Func< TP1, TP2, TR > func, bool write, TR defaultVal, TP1 p1, TP2 p2)
TR FMAssert< TR >(Func< TR > func, bool write, TR defaultVal)