Click here to Skip to main content
14,299,114 members
   

C#

 
AnswerRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 10:09
professionalMSBassSinger30-Jul-19 10:09 
AnswerRe: Is the "using" statement really a good idea? Pin
Gerry Schmitz31-Jul-19 4:32
mveGerry Schmitz31-Jul-19 4:32 
Questioncapture the screenshot of desktop using C# Pin
Member 1454529529-Jul-19 22:41
memberMember 1454529529-Jul-19 22:41 
AnswerRe: capture the screenshot of desktop using C# Pin
OriginalGriff29-Jul-19 23:26
protectorOriginalGriff29-Jul-19 23:26 
AnswerRe: capture the screenshot of desktop using C# Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:29
mveAfzaal Ahmad Zeeshan30-Jul-19 5:29 
QuestionCreating a struct dynamically Pin
Member 1452625729-Jul-19 21:48
memberMember 1452625729-Jul-19 21:48 
AnswerRe: Creating a struct dynamically Pin
OriginalGriff29-Jul-19 22:06
protectorOriginalGriff29-Jul-19 22:06 
AnswerRe: Creating a struct dynamically Pin
BillWoodruff31-Jul-19 14:28
mveBillWoodruff31-Jul-19 14:28 
Because of the constraints that make using instances of run-time defined Types difficult, I'd recommend you look at an alternative like System.Dynamic ExpandoObject.

You create a Struct on-the-fly: any instance of it is going to be boxed, and right there you may have lost the potential benefits of using a Struct.

The few cases I've seen that needed to cook up some run-time bag of mixed Types could all be handled using System.Dynamic (or, even the now deprecated 'ArrayList).

Rick Strahl has done some very interesting work with ExpandoObject that I think could be relevant to your concerns: [^].

Describe your use case in detail, maybe you'll get more specific feedback.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot


modified 1-Aug-19 14:45pm.

SuggestionRe: Creating a struct dynamically Pin
Richard Deeming1-Aug-19 1:40
mveRichard Deeming1-Aug-19 1:40 
GeneralRe: Creating a struct dynamically Pin
BillWoodruff1-Aug-19 8:47
mveBillWoodruff1-Aug-19 8:47 
QuestionError when i try to add my control to form1 Pin
_Q12_29-Jul-19 8:30
member_Q12_29-Jul-19 8:30 
AnswerRe: Error when i try to add my control to form1 Pin
Richard Deeming29-Jul-19 9:10
mveRichard Deeming29-Jul-19 9:10 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 10:10
member_Q12_29-Jul-19 10:10 
GeneralRe: Error when i try to add my control to form1 Pin
Richard Deeming30-Jul-19 1:52
mveRichard Deeming30-Jul-19 1:52 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_30-Jul-19 7:58
member_Q12_30-Jul-19 7:58 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 10:34
member_Q12_29-Jul-19 10:34 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 22:10
member_Q12_29-Jul-19 22:10 
AnswerRe: Error when i try to add my control to form1 Pin
Dave Kreskowiak29-Jul-19 9:16
mveDave Kreskowiak29-Jul-19 9:16 
QuestionUnauthorizedAccessException Access to the remote share path Pin
Member 1158435626-Jul-19 0:09
memberMember 1158435626-Jul-19 0:09 
AnswerRe: UnauthorizedAccessException Access to the remote share path Pin
#realJSOP26-Jul-19 0:44
mve#realJSOP26-Jul-19 0:44 
Questionc# app design Pin
Member 1454172825-Jul-19 13:31
memberMember 1454172825-Jul-19 13:31 
AnswerRe: c# app design Pin
Gerry Schmitz25-Jul-19 14:42
mveGerry Schmitz25-Jul-19 14:42 
AnswerRe: c# app design Pin
Mycroft Holmes25-Jul-19 14:43
memberMycroft Holmes25-Jul-19 14:43 
GeneralRe: c# app design Pin
#realJSOP26-Jul-19 0:47
mve#realJSOP26-Jul-19 0:47 
GeneralRe: c# app design Pin
Mycroft Holmes26-Jul-19 11:52
memberMycroft Holmes26-Jul-19 11:52 

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.