Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
QuestionDatabase connectivity in C# using ADO.net Pin
Alamzeb khan21-Jun-06 0:50
Alamzeb khan21-Jun-06 0:50 
AnswerRe: Database connectivity in C# using ADO.net Pin
albCode21-Jun-06 1:06
albCode21-Jun-06 1:06 
Questionloading a page in webbrowser ? Pin
cmpeng3421-Jun-06 0:46
cmpeng3421-Jun-06 0:46 
AnswerRe: loading a page in webbrowser ? Pin
Ed.Poore21-Jun-06 1:42
Ed.Poore21-Jun-06 1:42 
QuestionHow to add librariesin C# ( 2005 framework)? Pin
Andy Rama21-Jun-06 0:28
Andy Rama21-Jun-06 0:28 
AnswerRe: How to add librariesin C# ( 2005 framework)? Pin
gnjunge21-Jun-06 2:46
gnjunge21-Jun-06 2:46 
Questionprinting reporting services Pin
toink toink21-Jun-06 0:19
toink toink21-Jun-06 0:19 
QuestionWhy is this good practice [modified] Pin
S020035621-Jun-06 0:15
S020035621-Jun-06 0:15 
Hi I've never really understood the use in this peice of code, ive been told its good practice/programming to use it and its been mentioned it had somthing to do with security but personaly i cannot see why.
<br />
private int x;<br />
public int X()<br />
{<br />
get {x}<br />
set {x = value;}<br />
}<br />

(the code might be slightly wrong doing this on the fly)
whats the use in it though surly unless your only using one of the get or the set you might as well just use a public variable that way u decrease on the code thats needed to be written, compiled and read.

any comments would be apreciated



-- modified at 6:16 Wednesday 21st June, 2006
AnswerRe: Why is this good practice Pin
Talal Sultan21-Jun-06 0:30
Talal Sultan21-Jun-06 0:30 
GeneralRe: Why is this good practice Pin
S020035621-Jun-06 0:52
S020035621-Jun-06 0:52 
GeneralRe: Why is this good practice Pin
Talal Sultan21-Jun-06 1:02
Talal Sultan21-Jun-06 1:02 
AnswerRe: Why is this good practice Pin
Divyang Mithaiwala21-Jun-06 1:14
Divyang Mithaiwala21-Jun-06 1:14 
AnswerRe: Why is this good practice Pin
BoneSoft21-Jun-06 4:08
BoneSoft21-Jun-06 4:08 
QuestionMobile application Pin
acodman21-Jun-06 0:15
acodman21-Jun-06 0:15 
AnswerRe: Mobile application Pin
Not Active21-Jun-06 2:52
mentorNot Active21-Jun-06 2:52 
QuestionRunning MSI file from inside a windows forms application Pin
Talal Sultan21-Jun-06 0:07
Talal Sultan21-Jun-06 0:07 
AnswerRe: Running MSI file from inside a windows forms application Pin
Ed.Poore21-Jun-06 1:43
Ed.Poore21-Jun-06 1:43 
GeneralRe: Running MSI file from inside a windows forms application Pin
Talal Sultan21-Jun-06 2:54
Talal Sultan21-Jun-06 2:54 
GeneralRe: Running MSI file from inside a windows forms application Pin
Ed.Poore21-Jun-06 6:04
Ed.Poore21-Jun-06 6:04 
Questioncustom control Pin
GDavy21-Jun-06 0:05
GDavy21-Jun-06 0:05 
AnswerRe: custom control Pin
Talal Sultan21-Jun-06 0:18
Talal Sultan21-Jun-06 0:18 
Questionmaking xml comments mandatory Pin
KrunalC20-Jun-06 23:51
KrunalC20-Jun-06 23:51 
AnswerRe: making xml comments mandatory Pin
Kevin McFarlane21-Jun-06 0:32
Kevin McFarlane21-Jun-06 0:32 
AnswerRe: making xml comments mandatory Pin
Not Active21-Jun-06 2:30
mentorNot Active21-Jun-06 2:30 
AnswerRe: making xml comments mandatory [modified] Pin
BoneSoft21-Jun-06 4:12
BoneSoft21-Jun-06 4:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.