votes
If C# passes objects by reference, when do we need to use the ref keyword?
C# passes objects as reference from what I understand. When do you need to use the ref keyword then? e.g. [code]public void SetUser(ref User user) { }[/code]
blah blah blah is here! blah blah » Close
C# passes objects as reference from what I understand. When do you need to use the ref keyword then? e.g. [code]public void SetUser(ref User user) { }[/code]
I want to both declare and initialize a Dictionary<string,object> at the same time. How can I do this?
Can I use all the features of the entity framework 4 with visual studio 2008 or am I forced to purchase 2010? Any particular edition?
I was exciting about linq to sql, but sad hear that it wasn't being supported anymore since Entity framework came around. I have been reading a little here and there on how entity framework works, and I am pleased so far that it basicall ...
I'm interesting in learning the basics of game programming, and was hoping someone can point me to some classic games ported to C#? Maybe something like tetris, or pacman, etc. I've found a few, but was hoping someone with more experi ...
What are the differences between Mongodb versus Sql Server? It seems Mongodb is in between a nosql database and a relational database. Reference: [url=http://www.mongodb.org/]http://www.mongodb.org/[/url]
C# supports nullable types, but is it a good idea to introduce nulls just because the database columns are nullable? It seems that it complicates the logic, because you can't just do: [code]if(someObject.BoolField) { }[/code] S ...
What is the different between the character encodings UTF8 and ASCII? If I store a string in C#, and then want to convert it to a byte array and then back into a string, how does UTF and ASCII impact this memory wise?
When you need to create some sort of workflow in a web application, should we be modeling things like a state machine or is that too complex for simple workflows? I need to do this: Basically it is a approval process, and when approve ...
How can I exclude a path from being checked into TFS? The path or folder is: /localconfig/
I have custom view models that I pass from my controller's action to the view. Is it bad practise to have properties on the model that are null? The values that are null are not accessed because I have a if statement to prevent access ...
If all my actions pass a model to their respective views, is it possible for me to initialize the model from the pre-action filter OnActionExecuting? All my models inherit from 'MyBaseViewModel', does this make it possible to do this?
If a button is pressed, I want to clear out (blank out) all form element values. There are textboxes, textareas and dropdown list elements in the form.
Hoping someone could go over what this javascript regex is doing? [code]'(^|\\\\s)'+searchClass+'(\\\\s|$)'[/code]
These days application data can be modified (created/updated/deleted etc) from multiple sources, such as a iphone application and a web application. What techniques are considered best practice when it comes to conflict resolution? Sa ...