protected void ClickOnPreviousButton(int numClicks) { TypeSW type = TypeSW.Wrap(typeof(Calendar)); for (int i = 0; i < numClicks; i++) { type.InvokeMember("OnPreviousClick", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod, null, Calendar, null); } }
public static Type Untrust(TypeSW type) { return(type.InnerObject); }
public static TypeSW Trust(Type type) { return(TypeSW.Wrap(type)); }