Click here to Skip to main content
15,898,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Christian Graus4-May-09 22:07
protectorChristian Graus4-May-09 22:07 
QuestionUser Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 20:50
King Julien4-May-09 20:50 
AnswerRe: User Level restriction------- which method is best xml or dll ?? Pin
Christian Graus4-May-09 21:16
protectorChristian Graus4-May-09 21:16 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:21
King Julien4-May-09 21:21 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
SeMartens4-May-09 21:30
SeMartens4-May-09 21:30 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:40
King Julien4-May-09 21:40 
Questionget set property Pin
lakhwinder.ghuman4-May-09 20:49
lakhwinder.ghuman4-May-09 20:49 
AnswerRe: get set property Pin
King Julien4-May-09 21:01
King Julien4-May-09 21:01 
Properties are a better way of controlling your private member variables.

get and set accessors are used to facilitate this access control.

assume you have a private member

private int count;
Now you want to assign some value to the variable and need to read it whenever required.

You can safely reveal your count variable to external world using a property declaration like this:

public int Counter
{
  get
  {
   return count;
  }

  set
  {
   count = value;
  }
}



"There are a few reasons to use properties, instead of public fields. One is that properties can be virtual. Another is that you can make the setters for a property private. Another is that properties have a 'special' meaning to things that inspect classes at runtime. There are frameworks for conveniently talking to databases and for reading and writing objects to and from XML and all sorts of other things -- and they automatically look at the object's properties (and not private fields or other things) to see how to do their job."

For better clarification i would suggest you to buy a C# book and spend some time in learning the basics..... rather than asking the same in the forums.....

Have a Happy Coding.....

GeneralRe: get set property Pin
OriginalGriff4-May-09 21:59
mveOriginalGriff4-May-09 21:59 
AnswerRe: get set property Pin
Member 44703545-May-09 0:00
Member 44703545-May-09 0:00 
QuestionHow to read CSV file Pin
kaushik_dass4-May-09 20:38
kaushik_dass4-May-09 20:38 
AnswerRe: How to read CSV file Pin
King Julien4-May-09 21:09
King Julien4-May-09 21:09 
GeneralRe: How to read CSV file Pin
kaushik_dass4-May-09 21:15
kaushik_dass4-May-09 21:15 
GeneralRe: How to read CSV file Pin
Dave Kreskowiak5-May-09 4:31
mveDave Kreskowiak5-May-09 4:31 
AnswerRe: How to read CSV file [modified] Pin
Jack Li4-May-09 21:46
Jack Li4-May-09 21:46 
QuestionConfirm message on successful validation Pin
Ramkithepower4-May-09 20:27
Ramkithepower4-May-09 20:27 
AnswerRe: Confirm message on successful validation Pin
Christian Graus4-May-09 20:35
protectorChristian Graus4-May-09 20:35 
AnswerRe: Confirm message on successful validation [modified] Pin
mohmeh834-May-09 20:42
mohmeh834-May-09 20:42 
GeneralRe: Confirm message on successful validation Pin
Ramkithepower4-May-09 20:50
Ramkithepower4-May-09 20:50 
GeneralRe: Confirm message on successful validation [modified] Pin
mohmeh834-May-09 21:16
mohmeh834-May-09 21:16 
AnswerRe: Confirm message on successful validation Pin
Jack Li4-May-09 21:50
Jack Li4-May-09 21:50 
QuestionTyped DataSets Pin
Illegal Operation4-May-09 19:16
Illegal Operation4-May-09 19:16 
AnswerRe: Typed DataSets Pin
N a v a n e e t h4-May-09 19:36
N a v a n e e t h4-May-09 19:36 
AnswerRe: Typed DataSets Pin
saanj4-May-09 20:10
saanj4-May-09 20:10 
QuestionHow can I know raw header information through BHO? Pin
svt gdwl4-May-09 18:39
svt gdwl4-May-09 18:39 

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.