Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
153 views

Design Questions

Im building a windows app in c# and I have the following design question : I have the following object structure : Parent -> Child Collection - > Child - > Grandchild collection -> Grandchild. The ...
MegaByte's user avatar
  • 6,805
22 votes
5 answers
33k views

How can I find all the public fields of an object in C#?

I'm constructing a method to take in an ArrayList(presumably full of objects) and then list all the fields(and their values) for each object in the ArrayList. Currently my code is as follows: public ...
junkforce's user avatar
  • 553
2 votes
6 answers
666 views

General Business Object Practices (and exception errors - redux)

Recently, I made a post about the developers I'm working with not using try catch blocks properly, and unfortuantely using try... catch blocks in critical situations and ignoring the exception error ...
stephenbayer's user avatar
  • 12.4k
0 votes
1 answer
507 views

How to detect the current sharepoint pages from the client machine?

On the client machine I need to be able to somehow detect which sites the current user are looking at right now. I know the base URL of the sharepoint app, say sharepoint.thecompany.net but how the ...
Kasper's user avatar
  • 1,708
10 votes
7 answers
12k views

How do you implement audit trail for your objects (Programming)?

I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc. I implemented an audit trail object that is triggered on OnSaving OnDeleting ...
user avatar
1 vote
3 answers
5k views

Differences Between DataSet Merges

Is there a difference (performance, overhead) between these two ways of merging data sets? MyTypedDataSet aDataSet = new MyTypedDataSet(); aDataSet .Merge(anotherDataSet); aDataSet .Merge(...
kjv's user avatar
  • 11.3k
2 votes
3 answers
1k views

Creating objects driven by the database to populate a Treeview - very slow

I have an application that reads a table from a database. I issue an SQL query to get a result set, based on a unique string value I glean from the results, I use a case/switch statement to generate ...
Vidar's user avatar
  • 6,633
0 votes
4 answers
394 views

Test an object for NOT being a type

I know how to test an object to see if it is of a type, using the IS keyword e.g. if (foo is bar) { //do something here } but how do you test for it not being "bar"?, I can't seem to find a ...
Vidar's user avatar
  • 6,633
0 votes
5 answers
960 views

Arbitrary Naming Convention (Business Objects)

Ok, do you do Business.Name or Business.BusinessName SubCategory.ID or SubCategory.SubCategoryID What about in your database? Why? I'm torn with both. Would love there to be a "right answer"
Sara Chipps's user avatar
  • 9,340

15 30 50 per page
1
253 254 255 256
257