Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
Questionhow to pass variable between classes in window application Pin
mhp13015-Jul-07 0:00
mhp13015-Jul-07 0:00 
AnswerRe: how to pass variable between classes in window application Pin
Guffa15-Jul-07 0:11
Guffa15-Jul-07 0:11 
GeneralRe: how to pass variable between classes in window application Pin
mhp13015-Jul-07 0:13
mhp13015-Jul-07 0:13 
AnswerRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 0:17
Muhammad Gouda15-Jul-07 0:17 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:15
Colin Angus Mackay15-Jul-07 1:15 
GeneralRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 1:30
Muhammad Gouda15-Jul-07 1:30 
GeneralRe: how to pass variable between classes in window application Pin
Luc Pattyn15-Jul-07 1:47
sitebuilderLuc Pattyn15-Jul-07 1:47 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 2:05
Colin Angus Mackay15-Jul-07 2:05 
Mohammed Gouda wrote:
Can you plz explain the difference between creating a Read/Write property for a private member AND making that member public?


Read the links I gave you.


Mohammed Gouda wrote:
And when I diside to make a Read/Write property this means I will permit external Read/Write acces to the member (which can be achieved shortly be the keyword public)


You are not granting read/write directly to the field, you are offering a way to access the field. If you read the links I gave you then you would already be aware of the advantages of that. In fact, there might not even be a field there at all. You are also giving your class the opportunity to veto any value that the outside class attempts to set on the field.

In short, there are vary few situations where making a field public is acceptable. Again, you would have seen that if you read the links I gave.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."

Ready to Give up - Your help will be much appreciated.


My website

GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:08
Colin Angus Mackay15-Jul-07 1:08 
QuestionWindows Form in web form Pin
ankit_mait14-Jul-07 23:03
ankit_mait14-Jul-07 23:03 
AnswerRe: Windows Form in web form Pin
Manas Bhardwaj14-Jul-07 23:28
professionalManas Bhardwaj14-Jul-07 23:28 
GeneralRe: Windows Form in web form Pin
Christian Graus15-Jul-07 6:19
protectorChristian Graus15-Jul-07 6:19 
GeneralRe: Windows Form in web form Pin
ankit_mait16-Jul-07 6:26
ankit_mait16-Jul-07 6:26 
AnswerRe: Windows Form in web form Pin
WillemM14-Jul-07 23:40
WillemM14-Jul-07 23:40 
Questionbutton appearance Pin
Maddie from Dartford14-Jul-07 22:02
Maddie from Dartford14-Jul-07 22:02 
AnswerRe: button appearance Pin
mav.northwind14-Jul-07 22:18
mav.northwind14-Jul-07 22:18 
GeneralRe: button appearance Pin
Maddie from Dartford14-Jul-07 22:28
Maddie from Dartford14-Jul-07 22:28 
Questionabout using dataset.xsd Pin
abstar14-Jul-07 20:31
abstar14-Jul-07 20:31 
AnswerRe: about using dataset.xsd Pin
mav.northwind14-Jul-07 22:20
mav.northwind14-Jul-07 22:20 
GeneralRe: about using dataset.xsd Pin
abstar15-Jul-07 9:02
abstar15-Jul-07 9:02 
GeneralRe: about using dataset.xsd Pin
mav.northwind15-Jul-07 9:52
mav.northwind15-Jul-07 9:52 
GeneralRe: about using dataset.xsd Pin
Paul Conrad15-Jul-07 10:02
professionalPaul Conrad15-Jul-07 10:02 
QuestionHTML to XML, using C#? Pin
turoi14-Jul-07 18:20
turoi14-Jul-07 18:20 
AnswerRe: HTML to XML, using C#? Pin
Steve Echols14-Jul-07 18:39
Steve Echols14-Jul-07 18:39 
GeneralRe: HTML to XML, using C#? Pin
DavidNohejl15-Jul-07 2:42
DavidNohejl15-Jul-07 2:42 

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.