Click here to Skip to main content
15,895,709 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Can a 1.0 .NET App run on a 1.1 Framework? Pin
Stephane Rodriguez.2-May-03 1:41
Stephane Rodriguez.2-May-03 1:41 
GeneralRe: Can a 1.0 .NET App run on a 1.1 Framework? Pin
CyberKewl2-May-03 1:45
CyberKewl2-May-03 1:45 
GeneralRe: Can a 1.0 .NET App run on a 1.1 Framework? Pin
Albert Ho [msft]6-May-03 23:06
Albert Ho [msft]6-May-03 23:06 
AnswerRe: Can a 1.0 .NET App run on a 1.1 Framework? Pin
Anonymous6-May-03 20:27
Anonymous6-May-03 20:27 
GeneralIrDA with .NET Pin
Daniel Strigl1-May-03 21:17
Daniel Strigl1-May-03 21:17 
GeneralRe: IrDA with .NET Pin
leppie2-May-03 8:51
leppie2-May-03 8:51 
GeneralRe: IrDA with .NET Pin
Daniel Strigl2-May-03 9:05
Daniel Strigl2-May-03 9:05 
Generalvirtual methods on existing value types Pin
Ben Watson1-May-03 17:39
Ben Watson1-May-03 17:39 
Consider this quote from the .NET documentation.

"Value types are sealed, which means that no other type can be derived from them. However, you can define virtual methods directly on the value type, and these methods can be called on either the boxed or unboxed form of the type. Although you cannot derive another type from a value type, you might define virtual methods on a value type when you are using a language in which it is more convenient to work with virtual methods than with nonvirtual or static methods."

I want to create a method that acts on integer values, but I cannot find anywhere online or in the documentation how to accomplish. To provide an example, I want to do this:

Int32 i=0x0004;
i.ReverseByteOrder();
byte[] array=i.GetBytes();

where ReverseByteOrder and GetBytes are functions I define. Is this possible? The documentation implies yes, but am I misunderstanding it?

Any help would be appreciated. Thank you!
GeneralRe: virtual methods on existing value types Pin
James T. Johnson1-May-03 17:57
James T. Johnson1-May-03 17:57 
Generalpaint application question Pin
lfsong30-Apr-03 0:41
lfsong30-Apr-03 0:41 
GeneralRe: paint application question Pin
J. Dunlap30-Apr-03 8:31
J. Dunlap30-Apr-03 8:31 
GeneralRe: paint application question Pin
lfsong1-May-03 17:55
lfsong1-May-03 17:55 
GeneralRe: paint application question Pin
James T. Johnson1-May-03 18:06
James T. Johnson1-May-03 18:06 
GeneralRe: paint application question Pin
lfsong2-May-03 5:30
lfsong2-May-03 5:30 
GeneralRe: paint application question Pin
James T. Johnson2-May-03 14:57
James T. Johnson2-May-03 14:57 
GeneralRe: paint application question Pin
lfsong2-May-03 19:03
lfsong2-May-03 19:03 
GeneralRe: paint application question Pin
James T. Johnson2-May-03 23:00
James T. Johnson2-May-03 23:00 
GeneralRe: paint application question Pin
lfsong4-May-03 18:46
lfsong4-May-03 18:46 
GeneralRe: paint application question Pin
J. Dunlap4-May-03 18:57
J. Dunlap4-May-03 18:57 
GeneralRe: paint application question Pin
lfsong4-May-03 22:52
lfsong4-May-03 22:52 
GeneralRe: paint application question Pin
James T. Johnson4-May-03 19:05
James T. Johnson4-May-03 19:05 
GeneralRe: paint application question Pin
J. Dunlap4-May-03 19:36
J. Dunlap4-May-03 19:36 
GeneralRe: paint application question Pin
James T. Johnson4-May-03 20:24
James T. Johnson4-May-03 20:24 
GeneralRe: paint application question Pin
J. Dunlap4-May-03 20:29
J. Dunlap4-May-03 20:29 
GeneralRe: paint application question Pin
lfsong4-May-03 23:36
lfsong4-May-03 23:36 

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.