private void WritePropertyGet(StructuralProperty property) { _("get"); using (_builder.IndentBraced) { _("return {0};", property.FieldName); } }
private void Write(StructuralProperty property) { WriteDeclaration(property); using (_builder.IndentBraced) { WritePropertyGet(property); WritePropertySet(property); } }
private void WritePropertySet(StructuralProperty property) { _("set"); using (_builder.IndentBraced) { _("if (value != {0})", property.FieldName); using (_builder.IndentBraced) { _("{0} = value;", property.FieldName); _("OnPropertyChanged(\"{0}\");", property.Name); } } }
public static StructuralProperty AsConcreteStructuralProperty(OdcmProperty odcmProperty) { return(odcmProperty.IsCollection() ? StructuralCollectionProperty.ForConcrete(odcmProperty) : StructuralProperty.ForConcrete(odcmProperty)); }