Useful hints regarding coding in CSharp/.net

From OpenPetra Wiki
Revision as of 12:14, 15 September 2009 by Pokorra (talk | contribs) (→‎arrays)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

language

arrays

creating array 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 (" +