private object AfterCast(ViewColumnType viewColumnType , ViewColumnInfo aViewColumnInfo , object propertyValue) { MethodInfo methodInfo = _castEditorType.GetMethod("AfterCast" , new System.Type[] { viewColumnType.GetType(), this.GetType(), aViewColumnInfo.GetType(), typeof(object) }); return(methodInfo.Invoke(_castEditor , new object[] { viewColumnType, this, aViewColumnInfo, propertyValue })); }
private object BeforeCast(ViewColumnType viewColumnType , ViewColumnInfo aViewColumnInfo , object viewColumnValue) { try { MethodInfo methodInfo = _castEditorType.GetMethod("BeforeCast", new System.Type[] { viewColumnType.GetType(), this.GetType(), aViewColumnInfo.GetType(), typeof(object) }); return(methodInfo.Invoke(_castEditor, new object[] { viewColumnType, this, aViewColumnInfo, viewColumnValue })); } catch (System.Exception ex) { MethodInfo[] m = _castEditorType.GetMethods(); throw; } }