Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: extending an Enum with a function that returns a generic value ? Pin
Matthew Dennis21-Apr-20 5:36
sysadminMatthew Dennis21-Apr-20 5:36 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff21-Apr-20 8:27
professionalBillWoodruff21-Apr-20 8:27 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
Richard Deeming21-Apr-20 8:37
mveRichard Deeming21-Apr-20 8:37 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff21-Apr-20 8:59
professionalBillWoodruff21-Apr-20 8:59 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
Matthew Dennis21-Apr-20 9:16
sysadminMatthew Dennis21-Apr-20 9:16 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff21-Apr-20 20:57
professionalBillWoodruff21-Apr-20 20:57 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
Matthew Dennis22-Apr-20 4:35
sysadminMatthew Dennis22-Apr-20 4:35 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff22-Apr-20 6:12
professionalBillWoodruff22-Apr-20 6:12 
my only objection is that once you define an extension method for a basic type, putting a dot after any instance of that type at design time in VS will cause intellisense to present the method in its list. in the list of methods, the extension method is not indicated with any special visual adornment.

a more serious potential issues is the inherent 'public accessibility of extension methods ... if abused, this can violate encapsulation. you can address that, however, by the use of NameSpaces.

while there actually is a difference in the order in which extension methods are compiled: i see no reason to be concerned about that.

as i said, it's a personal preference. for a stronger opinion: [^]
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff21-Apr-20 21:53
professionalBillWoodruff21-Apr-20 21:53 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
Richard Deeming21-Apr-20 23:25
mveRichard Deeming21-Apr-20 23:25 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff22-Apr-20 3:01
professionalBillWoodruff22-Apr-20 3:01 
AnswerRe: extending an Enum with a function that returns a generic value ? Pin
#realJSOP22-Apr-20 7:25
professional#realJSOP22-Apr-20 7:25 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff22-Apr-20 7:39
professionalBillWoodruff22-Apr-20 7:39 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
#realJSOP22-Apr-20 7:47
professional#realJSOP22-Apr-20 7:47 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff22-Apr-20 20:31
professionalBillWoodruff22-Apr-20 20:31 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
#realJSOP23-Apr-20 0:58
professional#realJSOP23-Apr-20 0:58 
GeneralRe: extending an Enum with a function that returns a generic value ? Pin
BillWoodruff23-Apr-20 5:25
professionalBillWoodruff23-Apr-20 5:25 
QuestionSas.dll Pin
Member 1480415820-Apr-20 4:26
Member 1480415820-Apr-20 4:26 
AnswerRe: Sas.dll Pin
Richard Andrew x6420-Apr-20 4:49
professionalRichard Andrew x6420-Apr-20 4:49 
GeneralRe: Sas.dll Pin
OriginalGriff20-Apr-20 4:51
mveOriginalGriff20-Apr-20 4:51 
AnswerRe: Sas.dll Pin
OriginalGriff20-Apr-20 4:50
mveOriginalGriff20-Apr-20 4:50 
QuestionAccess WebApi remotely - C'mon guys I don't believe no one has a clue ! any hint will do Pin
pkfox20-Apr-20 3:21
professionalpkfox20-Apr-20 3:21 
AnswerRe: Access WebApi remotely - C'mon guys I don't believe no one has a clue ! any hint will do Pin
Peter Shaw22-Apr-20 10:22
professionalPeter Shaw22-Apr-20 10:22 
GeneralRe: Access WebApi remotely - C'mon guys I don't believe no one has a clue ! any hint will do Pin
pkfox22-Apr-20 12:05
professionalpkfox22-Apr-20 12:05 
GeneralRe: Access WebApi remotely - C'mon guys I don't believe no one has a clue ! any hint will do Pin
Peter Shaw22-Apr-20 12:12
professionalPeter Shaw22-Apr-20 12: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.