Click here to Skip to main content
15,905,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Password from Console Pin
Paresh Gheewala26-Jun-03 15:29
Paresh Gheewala26-Jun-03 15:29 
GeneralRemoving legacy app from task bar. Pin
albean26-Jun-03 7:08
albean26-Jun-03 7:08 
GeneralFinalization Pin
Kant26-Jun-03 6:58
Kant26-Jun-03 6:58 
GeneralRe: Finalization Pin
albean26-Jun-03 7:03
albean26-Jun-03 7:03 
GeneralRe: Finalization (Clickety) Pin
Kant26-Jun-03 7:14
Kant26-Jun-03 7:14 
GeneralRe: Finalization Pin
leppie26-Jun-03 7:08
leppie26-Jun-03 7:08 
GeneralRe: Finalization Pin
Kant26-Jun-03 7:18
Kant26-Jun-03 7:18 
GeneralRe: Finalization Pin
leppie26-Jun-03 7:37
leppie26-Jun-03 7:37 
GeneralRe: Finalization Pin
Arun Bhalla26-Jun-03 11:54
Arun Bhalla26-Jun-03 11:54 
GeneralRe: Finalization Pin
albean26-Jun-03 12:02
albean26-Jun-03 12:02 
GeneralOject memory adress. Pin
GriffonRL26-Jun-03 6:49
GriffonRL26-Jun-03 6:49 
GeneralRe: Oject memory adress. Pin
leppie26-Jun-03 7:01
leppie26-Jun-03 7:01 
GeneralRe: Object memory adress. Pin
GriffonRL26-Jun-03 7:28
GriffonRL26-Jun-03 7:28 
GeneralRe: Object memory adress. Pin
leppie26-Jun-03 7:44
leppie26-Jun-03 7:44 
GeneralRe: Object memory adress. Pin
GriffonRL26-Jun-03 8:31
GriffonRL26-Jun-03 8:31 
GeneralRe: Object memory adress. Pin
leppie26-Jun-03 9:02
leppie26-Jun-03 9:02 
GeneralRe: Object memory adress. Pin
leppie26-Jun-03 9:05
leppie26-Jun-03 9:05 
GeneralRe: Object memory adress. Pin
leppie26-Jun-03 11:02
leppie26-Jun-03 11:02 
GeneralRe: Oject memory adress. Pin
leppie26-Jun-03 11:21
leppie26-Jun-03 11:21 
Here is a full sample, see the comments:
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
  .ver 1:0:3300:0
}
.assembly Testing
{
  .hash algorithm 0x00008004
  .ver 1:0:1272:38245
}
.module Testing.exe
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) 
.imagebase 0x00400000
.subsystem 0x00000003
.file alignment 512
.corflags 0x00000001

.namespace Testing
{
  .class private auto ansi beforefieldinit Class1
         extends [mscorlib]System.Object
  {
    .method private hidebysig static void 
            Main(string[] args) cil managed
    {
      .entrypoint
      .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) 
      .maxstack  1
      .locals ([0] object c1,
               [1] void* h,
               [2] int32 i)
      newobj     instance void Testing.Class1::.ctor()
      stloc.0
      ldloc.s    c1 //ldloca will box ref type
      call       void* Testing.Class1::GetAddr(object&)
      stloc.1
      ldc.i4.5
      stloc.2
      ldloca     2 //note ldloca for value types
      call       void* Testing.Class1::GetAddr(object&)
      stloc.1
      ret
    }

    .method private hidebysig static void* 
            GetAddr(object& o) cil managed
    {
      .maxstack  1
      ldarg.0
      conv.u
      ret
    }

    .method public hidebysig specialname rtspecialname 
            instance void  .ctor() cil managed
    {
      .maxstack  1
      ldarg.0
      call       instance void [mscorlib]System.Object::.ctor()
      ret
    }
  }
}

I dont know how one would call a ref object without adding the ref keyword in C#???

leppie::AllocCPArticle(Generic DFA State Machine for .NET);
GeneralRe: Oject memory adress. Pin
GriffonRL26-Jun-03 13:22
GriffonRL26-Jun-03 13:22 
QuestionConvert Word to XML? Pin
theJazzyBrain26-Jun-03 6:44
theJazzyBrain26-Jun-03 6:44 
AnswerRe: Convert Word to XML? Pin
Kant26-Jun-03 7:21
Kant26-Jun-03 7:21 
AnswerRe: Convert Word to XML? Pin
Kant26-Jun-03 7:31
Kant26-Jun-03 7:31 
GeneralC# and Exceptions Pin
theJazzyBrain26-Jun-03 5:48
theJazzyBrain26-Jun-03 5:48 
GeneralRe: C# and Exceptions Pin
leppie26-Jun-03 7:11
leppie26-Jun-03 7:11 

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.