Click here to Skip to main content
15,909,829 members
Home / Discussions / C#
   

C#

 
AnswerRe: Add-in, how to work with it? Pin
Werdna16-Jun-05 4:55
Werdna16-Jun-05 4:55 
GeneralCrystal report and C# Pin
jeya_00715-Jun-05 23:16
jeya_00715-Jun-05 23:16 
QuestionListView - some kind of a scroll event? Pin
iliyang15-Jun-05 22:55
iliyang15-Jun-05 22:55 
Questionwhat is the difference between Property and Public Field? Pin
Khoa Bui15-Jun-05 22:51
Khoa Bui15-Jun-05 22:51 
AnswerRe: what is the difference between Property and Public Field? Pin
iliyang15-Jun-05 23:06
iliyang15-Jun-05 23:06 
AnswerRe: what is the difference between Property and Public Field? Pin
Andrew Kirillov15-Jun-05 23:12
Andrew Kirillov15-Jun-05 23:12 
Generalthanks, I got it! Pin
Khoa Bui15-Jun-05 23:25
Khoa Bui15-Jun-05 23:25 
GeneralRe: thanks, I got it! Pin
Colin Angus Mackay16-Jun-05 0:52
Colin Angus Mackay16-Jun-05 0:52 
Actually, the two definitions that you got missed off something very important. You should never make a field public because it blows a great big hole the encapsulation aspect of OO.

Even if you just want direct access to a field in a class, you should wrap it in a property in order to future proof it against possible changes. At the moment you may only need to set the field underneath the property. But in future you may need to tell other objects about the change. If you were just accessing the field directly then you couldn't add this functionality easily.




My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: thanks, I got it! Pin
iliyang16-Jun-05 1:15
iliyang16-Jun-05 1:15 
AnswerRe: what is the difference between Property and Public Field? Pin
eggie516-Jun-05 5:39
eggie516-Jun-05 5:39 
Questionhow merge 2 PNG images in one Pin
Anonymous15-Jun-05 22:32
Anonymous15-Jun-05 22:32 
AnswerRe: how merge 2 PNG images in one Pin
Niklas Ulvinge15-Jun-05 22:57
Niklas Ulvinge15-Jun-05 22:57 
AnswerRe: how merge 2 PNG images in one Pin
iliyang15-Jun-05 23:13
iliyang15-Jun-05 23:13 
GeneralRe: how merge 2 PNG images in one Pin
Anonymous16-Jun-05 0:04
Anonymous16-Jun-05 0:04 
GeneralRe: how merge 2 PNG images in one Pin
iliyang16-Jun-05 0:38
iliyang16-Jun-05 0:38 
GeneralRe: how merge 2 PNG images in one Pin
Anonymous16-Jun-05 1:33
Anonymous16-Jun-05 1:33 
Generalunsafe code Pin
usbah15-Jun-05 22:05
usbah15-Jun-05 22:05 
GeneralRe: unsafe code Pin
Andrew Kirillov15-Jun-05 23:18
Andrew Kirillov15-Jun-05 23:18 
Generalerror Pin
fatidarya15-Jun-05 21:59
fatidarya15-Jun-05 21:59 
GeneralRe: error Pin
Dave Kreskowiak16-Jun-05 4:40
mveDave Kreskowiak16-Jun-05 4:40 
GeneralStart and use an external application Pin
Rey999915-Jun-05 21:53
Rey999915-Jun-05 21:53 
GeneralRe: Start and use an external application Pin
codeprojectin15-Jun-05 21:59
codeprojectin15-Jun-05 21:59 
GeneralRe: Start and use an external application Pin
Rey999915-Jun-05 23:33
Rey999915-Jun-05 23:33 
GeneralCSTA in C# Pin
yarns15-Jun-05 20:56
yarns15-Jun-05 20:56 
GeneralRe: CSTA in C# Pin
mav.northwind16-Jun-05 1:18
mav.northwind16-Jun-05 1:18 

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.