GetMethod() public static method

public static GetMethod ( string name ) : MethodInfo
name string
return System.Reflection.MethodInfo
コード例 #1
0
 protected internal void DefinePrimitiveSqlDataType(Type type, string name, string getValueMethod)
 {
     this.DefinePrimitiveSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod));
 }
 public DateTimeKindNormalisingDateTimeSqlDateType(ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type type, string typeName, DateTimeKind dateTimeKind, MethodInfo dataRecordGetMethod = null)
     : base(constraintDefaultsConfiguration, type, typeName, dataRecordGetMethod ?? DataRecordMethods.GetMethod(nameof(IDataRecord.GetDateTime)))
 {
     this.dateTimeKind      = dateTimeKind;
     this.specifyKindMethod = type.IsNullableType() ? specifyKindIfUnspecifiedMethodNullable : specifyKindIfUnspecifiedMethod;
 }
コード例 #3
0
 public UniversalTimeNormalisingDateTimeSqlDateType(ConstraintDefaults constraintDefaults, string typeName, bool nullable)
     : base(constraintDefaults, nullable ? typeof(DateTime?) : typeof(DateTime), typeName, DataRecordMethods.GetMethod("GetDateTime"))
 {
     this.specifyKindMethod = nullable ? specifyKindIfUnspecifiedMethodNullable : specifyKindIfUnspecifiedMethod;
 }
コード例 #4
0
 protected void DefineSqlDataType(Type type, string name, string getValueMethod)
 {
     DefineSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod));
 }