Click here to Skip to main content
15,890,741 members
Home / Discussions / C#
   

C#

 
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer12-Dec-07 3:27
polishprogrammer12-Dec-07 3:27 
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer12-Dec-07 6:25
polishprogrammer12-Dec-07 6:25 
QuestionHow to import the data inside a text file into a database? Pin
josephx2k711-Dec-07 8:49
josephx2k711-Dec-07 8:49 
GeneralRe: How to import the data inside a text file into a database? Pin
Christian Graus11-Dec-07 9:27
protectorChristian Graus11-Dec-07 9:27 
GeneralRe: How to import the data inside a text file into a database? Pin
josephx2k711-Dec-07 10:13
josephx2k711-Dec-07 10:13 
GeneralRe: How to import the data inside a text file into a database? Pin
Christian Graus11-Dec-07 13:46
protectorChristian Graus11-Dec-07 13:46 
QuestionIs it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 8:05
Skippums11-Dec-07 8:05 
GeneralRe: Is it possible to create instance aliases in C#? [modified] Pin
Luc Pattyn11-Dec-07 8:42
sitebuilderLuc Pattyn11-Dec-07 8:42 
Hi Jeff,

I have never seen such thing, so AFAIK it is impossible.
Also, IMO the C# language designers would consider it unnecessary and unsafe.
And if you look at pointers, they can only point to value types.

So I think you will have to refactor the code and substitute every B by A.

[added]
the feature you're asking about is similar to the union in C/C++;
it is not supported in C#, although there is a way to mimic it inside structs,
by giving explicit FieldOffset values

I use unions (in C that is) only to byte-convert from one type to another, not to get two names for
the same thing; sometimes I miss it in C#. Not sure how the C# compiler would cope with the latter.
[/added]

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


Sorry for any delays in replying, I currently don't always get e-mail notifications.


modified on Tuesday, December 11, 2007 2:49:59 PM

GeneralRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:09
Skippums11-Dec-07 9:09 
QuestionRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:26
Skippums11-Dec-07 9:26 
GeneralRe: Is it possible to create instance aliases in C#? Pin
Luc Pattyn11-Dec-07 9:48
sitebuilderLuc Pattyn11-Dec-07 9:48 
GeneralFormat code for a decimal number. Pin
dbrenth11-Dec-07 7:37
dbrenth11-Dec-07 7:37 
GeneralRe: Format code for a decimal number. Pin
pmarfleet11-Dec-07 7:54
pmarfleet11-Dec-07 7:54 
QuestionReceiving Connection Error w/ SQL DB File on Remote/Hosting Server Pin
dboy22111-Dec-07 7:17
dboy22111-Dec-07 7:17 
GeneralClasses and references Pin
User 665811-Dec-07 6:42
User 665811-Dec-07 6:42 
GeneralRe: Classes and references Pin
Skippums11-Dec-07 6:59
Skippums11-Dec-07 6:59 
GeneralLoad assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:19
Josh Ryon11-Dec-07 6:19 
GeneralRe: Load assmebly into new appdomain from filename Pin
Josh Ryon11-Dec-07 6:46
Josh Ryon11-Dec-07 6:46 
QuestionC# Deployment on Remote Machine [modified] Pin
Tiger_tom11-Dec-07 5:13
Tiger_tom11-Dec-07 5:13 
GeneralGarbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 4:48
sponsorJudah Gabriel Himango11-Dec-07 4:48 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 7:01
sitebuilderLuc Pattyn11-Dec-07 7:01 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 7:55
sponsorJudah Gabriel Himango11-Dec-07 7:55 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Luc Pattyn11-Dec-07 8:21
sitebuilderLuc Pattyn11-Dec-07 8:21 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Judah Gabriel Himango11-Dec-07 9:14
sponsorJudah Gabriel Himango11-Dec-07 9:14 
GeneralRe: Garbage collector not freeing memory - honest! Pin
Pete O'Hanlon11-Dec-07 9:49
mvePete O'Hanlon11-Dec-07 9:49 

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.