public string GetGetterName(PropertyModel property) { if (string.Equals(property.Type.UnderlyingType, "bool", StringComparison.InvariantCultureIgnoreCase)) return string.Format("Is{0}", property.Name); else return string.Format("Get{0}", property.Name); }
public string GetSetterName(PropertyModel property) { return string.Format("Set{0}", property.Name); }
public string GetFieldName(PropertyModel property) { return string.Format("m_{0}{1}", char.ToLowerInvariant(property.Name[0]), property.Name.Substring(1)); }