Click here to Skip to main content
16,008,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: struct X class Pin
Judah Gabriel Himango11-Sep-08 17:27
sponsorJudah Gabriel Himango11-Sep-08 17:27 
GeneralRe: struct X class Pin
Dirso12-Sep-08 0:11
Dirso12-Sep-08 0:11 
AnswerRe: struct X class Pin
Guffa11-Sep-08 20:52
Guffa11-Sep-08 20:52 
GeneralRe: struct X class Pin
Dirso12-Sep-08 0:13
Dirso12-Sep-08 0:13 
GeneralRe: struct X class Pin
Guffa12-Sep-08 2:32
Guffa12-Sep-08 2:32 
Questionwhich database is installed on every computer Pin
Deresen11-Sep-08 12:03
Deresen11-Sep-08 12:03 
AnswerRe: which database is installed on every computer Pin
Pete O'Hanlon11-Sep-08 12:25
mvePete O'Hanlon11-Sep-08 12:25 
AnswerRe: which database is installed on every computer Pin
Eslam Afifi11-Sep-08 12:35
Eslam Afifi11-Sep-08 12:35 
GeneralRe: which database is installed on every computer Pin
Member 204889411-Sep-08 14:05
Member 204889411-Sep-08 14:05 
AnswerRe: which database is installed on every computer Pin
Paul Conrad11-Sep-08 12:49
professionalPaul Conrad11-Sep-08 12:49 
AnswerRe: which database is installed on every computer Pin
Giorgi Dalakishvili12-Sep-08 0:49
mentorGiorgi Dalakishvili12-Sep-08 0:49 
QuestionOpen Another Application from a Windows Form Pin
polishprogrammer11-Sep-08 11:30
polishprogrammer11-Sep-08 11:30 
AnswerRe: Open Another Application from a Windows Form Pin
Pete O'Hanlon11-Sep-08 11:53
mvePete O'Hanlon11-Sep-08 11:53 
AnswerRe: Open Another Application from a Windows Form Pin
Eslam Afifi11-Sep-08 11:58
Eslam Afifi11-Sep-08 11:58 
QuestionHow do I programatically select a Tab Page? Pin
postonoh11-Sep-08 10:52
postonoh11-Sep-08 10:52 
AnswerRe: How do I programatically select a Tab Page? Pin
Pete O'Hanlon11-Sep-08 11:21
mvePete O'Hanlon11-Sep-08 11:21 
GeneralRe: How do I programatically select a Tab Page? Pin
postonoh11-Sep-08 11:26
postonoh11-Sep-08 11:26 
GeneralRe: How do I programatically select a Tab Page? Pin
Pete O'Hanlon11-Sep-08 11:44
mvePete O'Hanlon11-Sep-08 11:44 
GeneralRe: How do I programatically select a Tab Page? Pin
postonoh11-Sep-08 13:35
postonoh11-Sep-08 13:35 
GeneralRe: How do I programatically select a Tab Page? Pin
Member 204889411-Sep-08 14:50
Member 204889411-Sep-08 14:50 
Questiontypedef?? Pin
Dirso11-Sep-08 10:08
Dirso11-Sep-08 10:08 
AnswerI am unaware of that functionality in C# Pin
Ennis Ray Lynch, Jr.11-Sep-08 10:18
Ennis Ray Lynch, Jr.11-Sep-08 10:18 
However, you could create a wrapper class at the expense of speed. It really is unfortunate that you cannot inherit base types in .NET.

Another option which is more sloppily elegant ... Create a new class whose only method is a static, implicit operator that converts between itself and the type you want.

Then declare your code using floats in the following manner:

float myFloat = ((MyClass)5f);

When it comes time to change the value of the float change the implicit operator's type and you will get compile time errors showing you every location that needs to be changed.


Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.


Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway


Most of this sig is for Google, not ego.


AnswerRe: typedef?? Pin
PIEBALDconsult11-Sep-08 10:57
mvePIEBALDconsult11-Sep-08 10:57 
AnswerRe: typedef?? Pin
Dave Doknjas11-Sep-08 13:21
Dave Doknjas11-Sep-08 13:21 
GeneralRe: typedef?? Pin
Dirso11-Sep-08 14:06
Dirso11-Sep-08 14:06 

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.