Useful hints regarding coding in CSharp/.net: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
Line 1: Line 1:
== language ==
== language ==
=== arrays ===
=== arrays ===
todo
creating arrays on the fly:
new object[] {element1, element2}
 
=== enums ===
=== enums ===
todo
todo

Revision as of 12:13, 15 September 2009

language

arrays

creating arrays on the fly:

new object[] {element1, element2}

enums

todo

System.Data

DataView: filter by date

           return new DataView(ATable, "((" + PPartnerLocationTable.GetDateEffectiveDBName() + " <= #" + DateTime.Now.Date.ToString(
                   "yyyy-MM-dd") + "# OR " + PPartnerLocationTable.GetDateEffectiveDBName() + " IS NULL) AND (" +