Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
SuggestionRe: how to get and compare values between two gridviews Pin
Richard MacCutchan16-Apr-14 22:31
mveRichard MacCutchan16-Apr-14 22:31 
QuestionHow to insert img file in sql server database and show it in a page regarding a particular user? Pin
krish099116-Apr-14 19:48
krish099116-Apr-14 19:48 
AnswerRe: How to insert img file in sql server database and show it in a page regarding a particular user? Pin
Peter Leow16-Apr-14 19:59
professionalPeter Leow16-Apr-14 19:59 
Questionc# implicit operator Pin
Member 378753716-Apr-14 9:50
Member 378753716-Apr-14 9:50 
AnswerRe: c# implicit operator Pin
BillWoodruff16-Apr-14 17:17
professionalBillWoodruff16-Apr-14 17:17 
GeneralRe: c# implicit operator Pin
Member 378753716-Apr-14 18:36
Member 378753716-Apr-14 18:36 
GeneralRe: c# implicit operator Pin
Member 378753716-Apr-14 18:47
Member 378753716-Apr-14 18:47 
GeneralRe: c# implicit operator Pin
BillWoodruff16-Apr-14 23:22
professionalBillWoodruff16-Apr-14 23:22 
Clear, clean, object-oriented design is an art and skill that takes time to develop.

Fields, and Properties, of Classes should be designed to clearly express the intent of the program, and the structure of flow-of-control.

Use Private/Public Fields, and Public Properties for specific, carefully chosen, reasons. Usually you make a Field (a variable of some Type) private because you don't want it exposed to change outside the Class it is defined in.

Similarly, you may define a Property with a private set, and a public get, to allow all consumers of instances of the Class to get the value of the Property, but only code inside the context/scope of the Class in which the Property is defined to set/change the value.

Anytime you design a Class with "hundreds of attributes," I think there's a good chance that the Class needs to re-designed, possibly decomposed into a set of inter-related smaller Classes.

I think you are kind of off-track here in exploring this type of use of the 'implicit operator.

good luck, Bill

“I speak in a poem of the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so.” Jorge Luis Borges

GeneralRe: c# implicit operator Pin
Member 378753716-Apr-14 18:51
Member 378753716-Apr-14 18:51 
Questionconvert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 6:46
professionalNico Haegens16-Apr-14 6:46 
AnswerRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
SledgeHammer0116-Apr-14 7:05
SledgeHammer0116-Apr-14 7:05 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 7:15
professionalNico Haegens16-Apr-14 7:15 
AnswerRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming16-Apr-14 7:57
mveRichard Deeming16-Apr-14 7:57 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens16-Apr-14 23:24
professionalNico Haegens16-Apr-14 23:24 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 1:54
mveRichard Deeming17-Apr-14 1:54 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens17-Apr-14 2:19
professionalNico Haegens17-Apr-14 2:19 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 2:30
mveRichard Deeming17-Apr-14 2:30 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Nico Haegens17-Apr-14 3:26
professionalNico Haegens17-Apr-14 3:26 
GeneralRe: convert List<typethatimplementsinterface> to List<interface>, is there a simple way to do this? Pin
Richard Deeming17-Apr-14 3:31
mveRichard Deeming17-Apr-14 3:31 
QuestionHow To Fetch User information and show in a page ? Pin
krish099116-Apr-14 6:04
krish099116-Apr-14 6:04 
AnswerRe: How To Fetch User information and show in a page ? Pin
OriginalGriff16-Apr-14 6:13
mveOriginalGriff16-Apr-14 6:13 
QuestionHow to change login button to logout in c# ? Pin
krish099116-Apr-14 6:02
krish099116-Apr-14 6:02 
AnswerRe: How to change login button to logout in c# ? Pin
OriginalGriff16-Apr-14 6:12
mveOriginalGriff16-Apr-14 6:12 
QuestionMultiple functions Pin
cstudent116-Apr-14 5:41
cstudent116-Apr-14 5:41 
AnswerRe: Multiple functions Pin
OriginalGriff16-Apr-14 5:51
mveOriginalGriff16-Apr-14 5:51 

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.