blah blah blah is here! blah blah » Close

0
votes
1 answers

If C# passes objects by reference, when do we need to use the ref keyword?

Rick_A
761

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]

0
votes
2 answers

How do I declare and initialize a Dictionary<string,object> at the same time?

Rick_A
761

I want to both declare and initialize a Dictionary<string,object> at the same time. How can I do this?

0
votes
1 answers

Can you use Entity framework with visual studio 2008?

Rick_A
761

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?

0
votes
0 answers

Is entity framework fun to use or a pain?

Rick_A
761

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 ...

0
votes
2 answers

Classic games written in c# for a beginner to learn from?

Rick_A
761

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 ...

0
votes
1 answers

Mongodb versus sql server, what are the key differences?

Rick_A
761

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]

0
votes
1 answers

Implications of using nullable types?

Rick_A
761

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 ...

0
votes
1 answers

What's the difference between UTF-8 and ASCII?

Rick_A
761

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?

0
votes
0 answers

Are state machines used in workflows?

Rick_A
761

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 ...

0
votes
0 answers

How to exclude a folder from being checked into TFS?

Rick_A
761

How can I exclude a path from being checked into TFS? The path or folder is: /localconfig/

0
votes
0 answers

Is it bad practice to pass a model to the view that may have null vaues?

Rick_A
761

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 ...

0
votes
0 answers

Can I initialize an actions model from OnActionExecuted?

Rick_A
761

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?

0
votes
1 answers

How can I clear all form elements using jQuery?

Rick_A
761

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.

0
votes
1 answers

What is this javascript regular expression doing?

Rick_A
761

Hoping someone could go over what this javascript regex is doing? [code]'(^|\\\\s)'+searchClass+'(\\\\s|$)'[/code]

0
votes
2 answers

How to resolve conflicts when data can be modified from multiple sources?

Rick_A
761

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 ...

Feedback