public static PropertyInfo GetFieldProperty(string fieldName, Type type) { return type.GetProperties().Where(i => i.Name == fieldName).FirstOrDefault(); }