Click here to Skip to main content
14,741,792 members
Home » Discussions » C#
   

C#

 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
pkfox26-Oct-20 3:48
professionalpkfox26-Oct-20 3:48 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
F-ES Sitecore26-Oct-20 2:15
mveF-ES Sitecore26-Oct-20 2:15 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff26-Oct-20 3:09
mveBillWoodruff26-Oct-20 3:09 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
Richard MacCutchan26-Oct-20 3:38
mveRichard MacCutchan26-Oct-20 3:38 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
F-ES Sitecore26-Oct-20 3:55
mveF-ES Sitecore26-Oct-20 3:55 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
Richard Deeming26-Oct-20 3:34
mveRichard Deeming26-Oct-20 3:34 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff26-Oct-20 4:50
mveBillWoodruff26-Oct-20 4:50 
AnswerRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff27-Oct-20 0:59
mveBillWoodruff27-Oct-20 0:59 
Thank you, all, for your illuminating responses ! Any further ideas, comments, critiques, would be very appreciated. If you care to address the more theoretical issue of whether this example embodies a design-pattern, I am all ears. Is the facility to "rehydrate" from instances of objects cast to interfaces to the ab origine strongly typed instance a form of factory pattern, or just a hack to enable collections of mixed types in C#'s strongly typed codeaverse >

a message for: @RichardDeeming @HaroldAptroot @jschell

If you have time to consider what this code does in the light of your comments on my April 24th. post and code example: [^] ... does this example meet my stated goal of:
Quote:
the goal: use interfaces to enable creating a collection of different types of objects: and, then, at run-time, cast back to the generic type without hard-coding specific types.

a. without using 'dynamic
b. without using reflection
c. without cloning/copying (using something like 'Activator.CreateInstance)

«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: an apparent violation of C#-generic "physics" ? (language issue) Pin
harold aptroot27-Oct-20 1:45
Memberharold aptroot27-Oct-20 1:45 
GeneralRe: an apparent violation of C#-generic "physics" ? (language issue) Pin
BillWoodruff27-Oct-20 6:46
mveBillWoodruff27-Oct-20 6:46 
QuestionHow to allow numbers and special characters in a textBox in C#? Pin
Alex Dunlop25-Oct-20 6:51
MemberAlex Dunlop25-Oct-20 6:51 
AnswerRe: How to allow numbers and special characters in a textBox in C#? Pin
Richard MacCutchan25-Oct-20 7:19
mveRichard MacCutchan25-Oct-20 7:19 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Alex Dunlop25-Oct-20 8:00
MemberAlex Dunlop25-Oct-20 8:00 
GeneralRe: How to allow numbers and special characters in a textBox in C#? Pin
Richard MacCutchan25-Oct-20 8:13
mveRichard MacCutchan25-Oct-20 8:13 
AnswerRe: How to allow numbers and special characters in a textBox in C#? Pin
BillWoodruff25-Oct-20 22:58
mveBillWoodruff25-Oct-20 22:58 
QuestionHi guys, currently making a guessing game and need some help with my code.. Pin
Member 1497438624-Oct-20 13:53
MemberMember 1497438624-Oct-20 13:53 
AnswerRe: Hi guys, currently making a guessing game and need some help with my code.. Pin
BillWoodruff24-Oct-20 16:04
mveBillWoodruff24-Oct-20 16:04 
GeneralRe: Kayan Yazı Pin
CHill6022-Oct-20 23:09
mveCHill6022-Oct-20 23:09 
GeneralRe: Kayan Yazı Pin
OriginalGriff22-Oct-20 23:14
mveOriginalGriff22-Oct-20 23:14 
QuestionInconveniente con la función MesageBox en C# Pin
Hernán Camilo21-Oct-20 9:50
professionalHernán Camilo21-Oct-20 9:50 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan21-Oct-20 23:02
mveRichard MacCutchan21-Oct-20 23:02 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
jsc4223-Oct-20 0:28
professionaljsc4223-Oct-20 0:28 
GeneralRe: Inconveniente con la función MesageBox en C# Pin
Richard MacCutchan23-Oct-20 0:54
mveRichard MacCutchan23-Oct-20 0:54 
AnswerRe: Inconveniente con la función MesageBox en C# Pin
OriginalGriff23-Oct-20 2:13
mveOriginalGriff23-Oct-20 2:13 
QuestionApertura de Archivos en C# ASP.Net interactuando con base de datos SQL Server Pin
Hernán Camilo21-Oct-20 9:50
professionalHernán Camilo21-Oct-20 9:50 

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.