Skip to content

Instantly share code, notes, and snippets.

@gsp8181
Created May 9, 2015 16:37
Show Gist options
  • Save gsp8181/b2a78a187e3cac8ecc61 to your computer and use it in GitHub Desktop.
Save gsp8181/b2a78a187e3cac8ecc61 to your computer and use it in GitHub Desktop.
.assembly extern System.Windows.Forms
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 4:0:0:0
}
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 4:0:0:0
}
.assembly extern System
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 4:0:0:0
}
.assembly extern Microsoft.VisualBasic
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 10:0:0:0
}
.assembly extern System.Drawing
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly WordsLeft
{
.custom instance void [mscorlib]System.Reflection.AssemblyTitleAttribute::.ctor(string) = ( 01 00 09 57 6F 72 64 73 4C 65 66 74 00 00 )
.custom instance void [mscorlib]System.Reflection.AssemblyDescriptionAttribute::.ctor(string) = ( 01 00 00 00 00 )
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 )
.custom instance void [mscorlib]System.Reflection.AssemblyCopyrightAttribute::.ctor(string) = ( 01 00 12 43 6F 70 79 72 69 67 68 74 20 C2 A9 20
20 32 30 31 35 00 00 )
.custom instance void [mscorlib]System.Runtime.Versioning.TargetFrameworkAttribute::.ctor(string) = ( 01 00 1A 2E 4E 45 54 46 72 61 6D 65 77 6F 72 6B
2C 56 65 72 73 69 6F 6E 3D 76 34 2E 35 01 00 54
0E 14 46 72 61 6D 65 77 6F 72 6B 44 69 73 70 6C
61 79 4E 61 6D 65 12 2E 4E 45 54 20 46 72 61 6D
65 77 6F 72 6B 20 34 2E 35 )
.custom instance void [mscorlib]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = ( 01 00 00 00 00 )
.custom instance void [mscorlib]System.Reflection.AssemblyCompanyAttribute::.ctor(string) = ( 01 00 00 00 00 )
.custom instance void [mscorlib]System.Reflection.AssemblyProductAttribute::.ctor(string) = ( 01 00 09 57 6F 72 64 73 4C 65 66 74 00 00 )
.custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = ( 01 00 24 38 37 32 37 65 36 32 35 2D 62 65 31 66
2D 34 31 39 38 2D 39 63 39 30 2D 34 63 32 63 66
33 33 61 39 63 38 62 00 00 )
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 )
.custom instance void [mscorlib]System.Runtime.InteropServices.ComVisibleAttribute::.ctor(bool) = ( 01 00 00 00 00 )
.custom instance void [mscorlib]System.Reflection.AssemblyTrademarkAttribute::.ctor(string) = ( 01 00 00 00 00 )
.custom instance void [mscorlib]System.Reflection.AssemblyFileVersionAttribute::.ctor(string) = ( 01 00 07 31 2E 30 2E 30 2E 30 00 00 )
.hash algorithm 0x00008004
.ver 1:0:0:0
}
.module WordsLeft.exe
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0002
.corflags 0x00020003
.class public auto ansi beforefieldinit WordsLeft.DefaultForm
extends [System.Windows.Forms]System.Windows.Forms.Form
{
.field private static literal string afterText = " words completed today"
.field private int32 wordCount
.field private class [System]System.ComponentModel.IContainer components
.field private class [System.Windows.Forms]System.Windows.Forms.TextBox wordCountBox
.field private class [System.Windows.Forms]System.Windows.Forms.Label label1
.field private class [System.Windows.Forms]System.Windows.Forms.Label label2
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [System.Windows.Forms]System.Windows.Forms.Form::.ctor()
IL_0006: ldarg.0
IL_0007: call instance void WordsLeft.DefaultForm::InitializeComponent()
IL_000c: ret
}
.method private hidebysig instance void
DefaultForm_Load(object sender,
class [mscorlib]System.EventArgs e) cil managed
{
.maxstack 5
.locals init ([0] int32 setting,
[1] string inputBox)
IL_0000: call class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::get_Default()
IL_0005: ldstr "LastWords"
IL_000a: callvirt instance object [System]System.Configuration.SettingsBase::get_Item(string)
IL_000f: unbox.any [mscorlib]System.Int32
IL_0014: stloc.0
IL_0015: ldstr "Enter the starting word count"
IL_001a: ldstr "Word Count"
IL_001f: ldloca.s setting
IL_0021: call instance string [mscorlib]System.Int32::ToString()
IL_0026: ldc.i4.m1
IL_0027: ldc.i4.m1
IL_0028: call string [Microsoft.VisualBasic]Microsoft.VisualBasic.Interaction::InputBox(string,
string,
string,
int32,
int32)
IL_002d: stloc.1
IL_002e: ldarg.0
IL_002f: ldloc.1
IL_0030: call int32 [mscorlib]System.Int32::Parse(string)
IL_0035: stfld int32 WordsLeft.DefaultForm::wordCount
IL_003a: ldarg.0
IL_003b: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0040: ldloc.1
IL_0041: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0046: ldarg.0
IL_0047: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_004c: ldstr "0 words completed today"
IL_0051: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0056: call class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::get_Default()
IL_005b: ldstr "LastWords"
IL_0060: ldarg.0
IL_0061: ldfld int32 WordsLeft.DefaultForm::wordCount
IL_0066: box [mscorlib]System.Int32
IL_006b: callvirt instance void [System]System.Configuration.SettingsBase::set_Item(string,
object)
IL_0070: call class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::get_Default()
IL_0075: callvirt instance void [System]System.Configuration.SettingsBase::Save()
IL_007a: ret
}
.method private hidebysig instance void
wordCountBox_TextChanged(object sender,
class [mscorlib]System.EventArgs e) cil managed
{
.maxstack 3
.locals init ([0] int32 newCount,
[1] int32 changed)
IL_0000: ldarg.0
IL_0001: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0006: call valuetype [System.Drawing]System.Drawing.Color [System.Drawing]System.Drawing.SystemColors::get_Control()
IL_000b: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_BackColor(valuetype [System.Drawing]System.Drawing.Color)
IL_0010: ldarg.0
IL_0011: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0016: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_001b: call bool [mscorlib]System.String::IsNullOrWhiteSpace(string)
IL_0020: brfalse.s IL_0033
IL_0022: ldarg.0
IL_0023: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0028: ldstr "0 words completed today"
IL_002d: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0032: ret
.try
{
IL_0033: ldarg.0
IL_0034: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0039: callvirt instance string [System.Windows.Forms]System.Windows.Forms.Control::get_Text()
IL_003e: call int32 [mscorlib]System.Int32::Parse(string)
IL_0043: stloc.0
IL_0044: ldloc.0
IL_0045: ldarg.0
IL_0046: ldfld int32 WordsLeft.DefaultForm::wordCount
IL_004b: sub
IL_004c: stloc.1
IL_004d: ldarg.0
IL_004e: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0053: ldloc.1
IL_0054: box [mscorlib]System.Int32
IL_0059: ldstr " words completed today"
IL_005e: call string [mscorlib]System.String::Concat(object,
object)
IL_0063: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0068: ldloc.1
IL_0069: ldc.i4 0x7d0
IL_006e: ble.s IL_0080
IL_0070: ldarg.0
IL_0071: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0076: call valuetype [System.Drawing]System.Drawing.Color [System.Drawing]System.Drawing.Color::get_LawnGreen()
IL_007b: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_BackColor(valuetype [System.Drawing]System.Drawing.Color)
IL_0080: leave.s IL_00a8
}
catch [mscorlib]System.FormatException
{
IL_0082: pop
IL_0083: ldarg.0
IL_0084: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0089: ldstr "NaN words completed today"
IL_008e: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0093: leave.s IL_00a8
}
catch [mscorlib]System.OverflowException
{
IL_0095: pop
IL_0096: ldarg.0
IL_0097: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_009c: ldstr "NaN words completed today"
IL_00a1: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_00a6: leave.s IL_00a8
}
IL_00a8: ret
}
.method private hidebysig instance void
FocusWordCountBox(object sender,
class [mscorlib]System.EventArgs e) cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0006: callvirt instance void [System.Windows.Forms]System.Windows.Forms.TextBoxBase::SelectAll()
IL_000b: ret
}
.method family hidebysig virtual instance void
Dispose(bool disposing) cil managed
{
.maxstack 8
IL_0000: ldarg.1
IL_0001: brfalse.s IL_0016
IL_0003: ldarg.0
IL_0004: ldfld class [System]System.ComponentModel.IContainer WordsLeft.DefaultForm::components
IL_0009: brfalse.s IL_0016
IL_000b: ldarg.0
IL_000c: ldfld class [System]System.ComponentModel.IContainer WordsLeft.DefaultForm::components
IL_0011: callvirt instance void [mscorlib]System.IDisposable::Dispose()
IL_0016: ldarg.0
IL_0017: ldarg.1
IL_0018: call instance void [System.Windows.Forms]System.Windows.Forms.Form::Dispose(bool)
IL_001d: ret
}
.method private hidebysig instance void
InitializeComponent() cil managed
{
.maxstack 6
.locals init ([0] class [System]System.ComponentModel.ComponentResourceManager resources)
IL_0000: ldtoken WordsLeft.DefaultForm
IL_0005: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
IL_000a: newobj instance void [System]System.ComponentModel.ComponentResourceManager::.ctor(class [mscorlib]System.Type)
IL_000f: stloc.0
IL_0010: ldarg.0
IL_0011: newobj instance void [System.Windows.Forms]System.Windows.Forms.TextBox::.ctor()
IL_0016: stfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_001b: ldarg.0
IL_001c: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
IL_0021: stfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_0026: ldarg.0
IL_0027: newobj instance void [System.Windows.Forms]System.Windows.Forms.Label::.ctor()
IL_002c: stfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0031: ldarg.0
IL_0032: call instance void [System.Windows.Forms]System.Windows.Forms.Control::SuspendLayout()
IL_0037: ldarg.0
IL_0038: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_003d: ldc.i4.s 85
IL_003f: ldc.i4.s 12
IL_0041: newobj instance void [System.Drawing]System.Drawing.Point::.ctor(int32,
int32)
IL_0046: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Location(valuetype [System.Drawing]System.Drawing.Point)
IL_004b: ldarg.0
IL_004c: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0051: ldstr "wordCountBox"
IL_0056: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
IL_005b: ldarg.0
IL_005c: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0061: ldc.i4 0x96
IL_0066: ldc.i4.s 20
IL_0068: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_006d: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
IL_0072: ldarg.0
IL_0073: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0078: ldc.i4.0
IL_0079: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_TabIndex(int32)
IL_007e: ldarg.0
IL_007f: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0084: ldarg.0
IL_0085: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_008b: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_0090: callvirt instance void [System.Windows.Forms]System.Windows.Forms.TextBoxBase::add_Click(class [mscorlib]System.EventHandler)
IL_0095: ldarg.0
IL_0096: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_009b: ldarg.0
IL_009c: ldftn instance void WordsLeft.DefaultForm::wordCountBox_TextChanged(object,
class [mscorlib]System.EventArgs)
IL_00a2: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_00a7: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::add_TextChanged(class [mscorlib]System.EventHandler)
IL_00ac: ldarg.0
IL_00ad: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_00b2: ldc.i4.1
IL_00b3: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_AutoSize(bool)
IL_00b8: ldarg.0
IL_00b9: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_00be: ldc.i4.s 9
IL_00c0: ldc.i4.s 15
IL_00c2: newobj instance void [System.Drawing]System.Drawing.Point::.ctor(int32,
int32)
IL_00c7: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Location(valuetype [System.Drawing]System.Drawing.Point)
IL_00cc: ldarg.0
IL_00cd: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_00d2: ldstr "label1"
IL_00d7: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
IL_00dc: ldarg.0
IL_00dd: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_00e2: ldc.i4.s 70
IL_00e4: ldc.i4.s 13
IL_00e6: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_00eb: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
IL_00f0: ldarg.0
IL_00f1: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_00f6: ldc.i4.1
IL_00f7: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_TabIndex(int32)
IL_00fc: ldarg.0
IL_00fd: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_0102: ldstr "Word Count: "
IL_0107: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_010c: ldarg.0
IL_010d: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_0112: ldarg.0
IL_0113: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_0119: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_011e: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::add_Click(class [mscorlib]System.EventHandler)
IL_0123: ldarg.0
IL_0124: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0129: ldc.i4.1
IL_012a: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_AutoSize(bool)
IL_012f: ldarg.0
IL_0130: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0135: ldc.i4.2
IL_0136: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Label::set_BorderStyle(valuetype [System.Windows.Forms]System.Windows.Forms.BorderStyle)
IL_013b: ldarg.0
IL_013c: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0141: ldstr "Microsoft Sans Serif"
IL_0146: ldc.r4 9.75
IL_014b: ldc.i4.0
IL_014c: ldc.i4.3
IL_014d: ldc.i4.0
IL_014e: newobj instance void [System.Drawing]System.Drawing.Font::.ctor(string,
float32,
valuetype [System.Drawing]System.Drawing.FontStyle,
valuetype [System.Drawing]System.Drawing.GraphicsUnit,
uint8)
IL_0153: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Font(class [System.Drawing]System.Drawing.Font)
IL_0158: ldarg.0
IL_0159: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_015e: ldc.i4.s 12
IL_0160: ldc.i4.s 44
IL_0162: newobj instance void [System.Drawing]System.Drawing.Point::.ctor(int32,
int32)
IL_0167: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Location(valuetype [System.Drawing]System.Drawing.Point)
IL_016c: ldarg.0
IL_016d: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0172: ldstr "label2"
IL_0177: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
IL_017c: ldarg.0
IL_017d: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0182: ldc.i4 0xa0
IL_0187: ldc.i4.s 18
IL_0189: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_018e: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
IL_0193: ldarg.0
IL_0194: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0199: ldc.i4.2
IL_019a: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_TabIndex(int32)
IL_019f: ldarg.0
IL_01a0: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_01a5: ldstr "0 words completed today"
IL_01aa: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_01af: ldarg.0
IL_01b0: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_01b5: ldarg.0
IL_01b6: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_01bc: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_01c1: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::add_Click(class [mscorlib]System.EventHandler)
IL_01c6: ldarg.0
IL_01c7: ldc.r4 6.
IL_01cc: ldc.r4 13.
IL_01d1: newobj instance void [System.Drawing]System.Drawing.SizeF::.ctor(float32,
float32)
IL_01d6: call instance void [System.Windows.Forms]System.Windows.Forms.ContainerControl::set_AutoScaleDimensions(valuetype [System.Drawing]System.Drawing.SizeF)
IL_01db: ldarg.0
IL_01dc: ldc.i4.1
IL_01dd: call instance void [System.Windows.Forms]System.Windows.Forms.ContainerControl::set_AutoScaleMode(valuetype [System.Windows.Forms]System.Windows.Forms.AutoScaleMode)
IL_01e2: ldarg.0
IL_01e3: ldc.i4 0xf5
IL_01e8: ldc.i4.s 71
IL_01ea: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_01ef: call instance void [System.Windows.Forms]System.Windows.Forms.Form::set_ClientSize(valuetype [System.Drawing]System.Drawing.Size)
IL_01f4: ldarg.0
IL_01f5: call instance class [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection [System.Windows.Forms]System.Windows.Forms.Control::get_Controls()
IL_01fa: ldarg.0
IL_01fb: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label2
IL_0200: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection::Add(class [System.Windows.Forms]System.Windows.Forms.Control)
IL_0205: ldarg.0
IL_0206: call instance class [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection [System.Windows.Forms]System.Windows.Forms.Control::get_Controls()
IL_020b: ldarg.0
IL_020c: ldfld class [System.Windows.Forms]System.Windows.Forms.Label WordsLeft.DefaultForm::label1
IL_0211: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection::Add(class [System.Windows.Forms]System.Windows.Forms.Control)
IL_0216: ldarg.0
IL_0217: call instance class [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection [System.Windows.Forms]System.Windows.Forms.Control::get_Controls()
IL_021c: ldarg.0
IL_021d: ldfld class [System.Windows.Forms]System.Windows.Forms.TextBox WordsLeft.DefaultForm::wordCountBox
IL_0222: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control/ControlCollection::Add(class [System.Windows.Forms]System.Windows.Forms.Control)
IL_0227: ldarg.0
IL_0228: ldc.i4.3
IL_0229: call instance void [System.Windows.Forms]System.Windows.Forms.Form::set_FormBorderStyle(valuetype [System.Windows.Forms]System.Windows.Forms.FormBorderStyle)
IL_0244: ldarg.0
IL_0245: ldc.i4.0
IL_0246: call instance void [System.Windows.Forms]System.Windows.Forms.Form::set_MaximizeBox(bool)
IL_024b: ldarg.0
IL_024c: ldstr "DefaultForm"
IL_0251: call instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Name(string)
IL_0256: ldarg.0
IL_0257: ldstr "Words Left"
IL_025c: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Text(string)
IL_0261: ldarg.0
IL_0262: ldc.i4.1
IL_0263: call instance void [System.Windows.Forms]System.Windows.Forms.Form::set_TopMost(bool)
IL_0268: ldarg.0
IL_0269: ldarg.0
IL_026a: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_0270: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_0275: call instance void [System.Windows.Forms]System.Windows.Forms.Form::add_Activated(class [mscorlib]System.EventHandler)
IL_027a: ldarg.0
IL_027b: ldarg.0
IL_027c: ldftn instance void WordsLeft.DefaultForm::DefaultForm_Load(object,
class [mscorlib]System.EventArgs)
IL_0282: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_0287: call instance void [System.Windows.Forms]System.Windows.Forms.Form::add_Load(class [mscorlib]System.EventHandler)
IL_028c: ldarg.0
IL_028d: ldarg.0
IL_028e: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_0294: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_0299: call instance void [System.Windows.Forms]System.Windows.Forms.Control::add_Click(class [mscorlib]System.EventHandler)
IL_029e: ldarg.0
IL_029f: ldarg.0
IL_02a0: ldftn instance void WordsLeft.DefaultForm::FocusWordCountBox(object,
class [mscorlib]System.EventArgs)
IL_02a6: newobj instance void [mscorlib]System.EventHandler::.ctor(object,
native int)
IL_02ab: call instance void [System.Windows.Forms]System.Windows.Forms.Control::add_Enter(class [mscorlib]System.EventHandler)
IL_02b0: ldarg.0
IL_02b1: ldc.i4.0
IL_02b2: call instance void [System.Windows.Forms]System.Windows.Forms.Control::ResumeLayout(bool)
IL_02b7: ldarg.0
IL_02b8: call instance void [System.Windows.Forms]System.Windows.Forms.Control::PerformLayout()
IL_02bd: ret
}
}
.class private abstract auto ansi sealed beforefieldinit WordsLeft.Program
extends [mscorlib]System.Object
{
.method private hidebysig static void Main() cil managed
{
.entrypoint
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )
.maxstack 8
IL_0000: call void [System.Windows.Forms]System.Windows.Forms.Application::EnableVisualStyles()
IL_0005: ldc.i4.0
IL_0006: call void [System.Windows.Forms]System.Windows.Forms.Application::SetCompatibleTextRenderingDefault(bool)
IL_000b: newobj instance void WordsLeft.DefaultForm::.ctor()
IL_0010: call void [System.Windows.Forms]System.Windows.Forms.Application::Run(class [System.Windows.Forms]System.Windows.Forms.Form)
IL_0015: ret
}
}
.class private auto ansi sealed beforefieldinit WordsLeft.Properties.Settings
extends [System]System.Configuration.ApplicationSettingsBase
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [System]System.CodeDom.Compiler.GeneratedCodeAttribute::.ctor(string,
string) = ( 01 00 4B 4D 69 63 72 6F 73 6F 66 74 2E 56 69 73
75 61 6C 53 74 75 64 69 6F 2E 45 64 69 74 6F 72
73 2E 53 65 74 74 69 6E 67 73 44 65 73 69 67 6E
65 72 2E 53 65 74 74 69 6E 67 73 53 69 6E 67 6C
65 46 69 6C 65 47 65 6E 65 72 61 74 6F 72 08 31
32 2E 30 2E 30 2E 30 00 00 )
.field private static class WordsLeft.Properties.Settings defaultInstance
.method public hidebysig specialname static
class WordsLeft.Properties.Settings
get_Default() cil managed
{
.maxstack 8
IL_0000: ldsfld class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::defaultInstance
IL_0005: ret
}
.method public hidebysig specialname instance int32
get_LastWords() cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldstr "LastWords"
IL_0006: callvirt instance object [System]System.Configuration.SettingsBase::get_Item(string)
IL_000b: unbox.any [mscorlib]System.Int32
IL_0010: ret
}
.method public hidebysig specialname instance void
set_LastWords(int32 'value') cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldstr "LastWords"
IL_0006: ldarg.1
IL_0007: box [mscorlib]System.Int32
IL_000c: callvirt instance void [System]System.Configuration.SettingsBase::set_Item(string,
object)
IL_0011: ret
}
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [System]System.Configuration.ApplicationSettingsBase::.ctor()
IL_0006: ret
}
.method private hidebysig specialname rtspecialname static
void .cctor() cil managed
{
.maxstack 8
IL_0000: newobj instance void WordsLeft.Properties.Settings::.ctor()
IL_0005: call class [System]System.Configuration.SettingsBase [System]System.Configuration.SettingsBase::Synchronized(class [System]System.Configuration.SettingsBase)
IL_000a: castclass WordsLeft.Properties.Settings
IL_000f: stsfld class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::defaultInstance
IL_0014: ret
}
.property class WordsLeft.Properties.Settings
Default()
{
.get class WordsLeft.Properties.Settings WordsLeft.Properties.Settings::get_Default()
}
.property instance int32 LastWords()
{
.custom instance void [System]System.Configuration.UserScopedSettingAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [mscorlib]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [System]System.Configuration.DefaultSettingValueAttribute::.ctor(string) = ( 01 00 01 30 00 00 )
.get instance int32 WordsLeft.Properties.Settings::get_LastWords()
.set instance void WordsLeft.Properties.Settings::set_LastWords(int32)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment