... (0xc) maxstack locals init ( [0] string CS$1 $00 00) IL _00 00: nop IL _00 01: ldarg .0 IL _00 02: ldfld string Program::_FirstName IL _00 07: stloc .0 IL _00 08: br.s IL _00 0a IL _00 0a: ldloc .0 IL _00 0b: ret } // ... Console.WriteLine("NextId = {0} ", Employee.NextId); 241 Chapter 5: Classes 242 } // } Output 5. 9 shows the results of Listing 5. 36 OUTPUT 5. 9: Inigo Montoya ( 100 000 0) Princess Buttercup ( 100 000 1) NextId = 100 000 2 To ... Program::get_FirstName method public hidebysig specialname instance void set_FirstName(string 'value') cil managed { // Code size (0x9) maxstack IL _00 00: nop IL _00 01: ldarg .0 IL _00 02: ldarg.1 IL _00 03: stfld string...
Ngày tải lên: 12/08/2014, 16:21
... 978 -0- 321 -53 392 -0 (pbk : alk paper) C# (Computer program language) Microsoft NET Framework I Title QA76.73 .C1 54 M52 35 200 8 00 6.7’882—dc22 200 802 359 5 Copyright © 200 9 Pearson Education, Inc All rights reserved ... 2 40 Static Methods 243 Static Constructors 2 45 Static Properties 246 Static Classes 247 227 Contents Extension Methods 249 Encapsulating the Data 2 50 const 251 readonly 251 Nested Classes 252 ... Defining Custom Exceptions 397 11 Generics 3 95 4 05 C# without Generics 40 6 Introducing Generic Types 41 1 Using a Generic Class 41 1 Defining a Simple Generic Class 41 3 Benefits of Generics 41 4 Type...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 2 pot
... 3. 14; StringReader reader 0x00A61 2C0 // char letter = 'A'; int number2 = number1; using System.IO; 00 66 00 20 00 00 66 00 72 00 6F 00 6D 00 20 Heap 9C 00 A6 00 00 00 00 11 00 00 33 00 00 00 C9 ... 78 02 41 00 6F 00 79 00 72 00 61 00 6F 00 66 00 20 00 70 00 20 00 61 00 63 00 6E 00 20 00 63 00 68 00 6F 00 6D Figure 2.2: Reference Types Point to the Heap Besides string and any custom classes ... C9 00 00 00 00 00 00 78 34 00 00 00 00 00 00 12 00 00 00 00 00 // string text = "A cacophony of ramblings from my potpourri of notes"; StringReader reader = new StringReader(text); // D4 4C C7...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 5 docx
... 00 000 000 001 000 0 00 000 000 0 100 000 00 000 000 100 000 0 00 000 001 000 000 0 00 000 0 100 000 000 00 000 100 000 000 0 00 001 000 000 000 0 00 0 100 000 000 000 00 100 000 000 000 0 01 000 000 000 000 0 100 000 000 000 000 Because enums support combined ... System.IO; 00 66 00 20 00 00 66 00 72 00 6F 00 6D 00 20 Heap 9C 00 A6 00 00 00 00 11 00 00 33 00 00 00 C9 00 00 00 00 00 00 78 34 00 00 00 00 00 00 12 00 00 00 00 00 D4 4C C7 78 02 41 00 6F 00 79 00 72 ... 00 11 00 00 33 00 00 00 C9 00 00 00 00 00 00 78 34 00 00 00 00 00 00 12 00 00 00 00 00 D4 4C C7 78 02 41 00 6F 00 79 00 72 00 61 00 6F 00 66 00 20 00 70 00 20 00 61 00 63 00 6E 00 20 00 63 00 ...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 6 potx
... the Microsoft csc.exe compiler 40 1 40 2 Chapter 10: Exception Handling The result is that an exception is thrown if, within the checked block, an overflow assignment occurs at runtime The C# compiler ... most closely matches the exception thrown, catch(ApplicationException ) will catch the exception instead of the catch(Exception ) block Catch blocks must appear in order, from most specific to ... Multiple Constructor Constraints C# without Generics Generics Nullable Modifier Using Defining Generic Types Benefits Naming Guidelines Interfaces Structs 4 05 40 6 Chapter 11: Generics C# without...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 7 doc
... Anonymous Types Collection Interfaces with Standard Query Operators Arrays IEnumerable Collections Implicit Local Variables Collection Initializers 50 7 50 8 Chapter 14: Collection Interfaces with Standard ... number; // // This code is conceptual, not the actual code while (stack.MoveNext()) 51 9 Chapter 14: Collection Interfaces with Standard Query Operators 52 0 { number = stack.Current; Console.WriteLine(number); ... out each integer to the console 51 7 Chapter 14: Collection Interfaces with Standard Query Operators 51 8 Listing 14 .5: foreach with Arrays int[] array = new int[]{1, 2, 3, 4, 5, 6}; foreach (int...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 8 pot
... decimal int sbyte short long void double string Hashcode 842 352 752 - 842 352 753 - 842 352 7 54 - 842 352 755 - 842 352 756 - 842 352 757 - 842 352 758 - 842 352 759 - 842 352 744 - 842 352 7 45 - 843 40 1 329 - 843 4668 65 ... - 843 40 1 329 - 843 4668 65 - 84 353 2 40 1 - 84 359 7937 - 843 66 347 3 - 843 72 900 9 - 842 352 7 54 - 842 352 755 - 842 352 756 - 842 352 757 - 842 352 758 - 842 352 759 - 842 352 744 - 842 352 7 45 Behaviorally, there are two internal arrays, ... 14 15 Value object byte sbyte short long void double string uint ulong float char bool ushort decimal int Hashcode 842 352 752 - 842 352 753 - 843 40 1 329 - 843 4668 65 - 84 353 2 40 1 - 84 359 7937 - 843 66 347 3...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 9 ppt
... it synchronizes across multiple processes Using the Mutex class, you can synchronize access to a file or some other cross-process resource Since Mutex is a cross-process resource, NET 2 .0 added ... extends [mscorlib]System.Object { custom instance void CustomAttribute::.ctor() = ( 01 00 00 00 ) } // end of class Person Summary In Listing 17.28, CustomAttribute is the full name of the decorating ... repetitions; _Character = character; } public int Repetitions { get { return _Repetitions; } } private int _Repetitions; public char Character { get { return _Character; } } private char _Character; } class...
Ngày tải lên: 12/08/2014, 16:21
Essential C# 3.0 FOR NET FRAMEWORK 3.5 PHẦN 10 ppt
... Machine Code 00 000 000 00 000 001 00 000 003 00 000 006 00 000 00d 00 000 0 14 00 000 01b 00 000 01d 00 000 022 00 000 028 00 000 02e 00 000 02f 00 000 031 00 000 032 push mov sub mov mov cmp je call mov call nop mov pop ret ... ptr dword ptr 00 000 022 75F 9C9 E0 ecx,dword dword ptr esp,ebp ebp Figure 21.1: Compiling C# to Machine Code [ebp -4] ,0 [ebp-0Ch] ,0 ds: [00 1833E0h] ,0 ptr ds: [0 1C3 141 8h] ds: [0 3C8 E 8 54 h] Runtime Runtime ... maxstack IL _00 00: ldstr "Hello My name is Inigo Montoya" IL _00 05 : call void [mscorlib]System.Console::WriteLine(string) IL _00 0a: ret } // end of method HelloWorld::Main Runtime Machine Code 00 000 000 ...
Ngày tải lên: 12/08/2014, 16:22
Pro ASP.NET 4 CMS: Advanced Techniques for C# Developers Using the .NET 4 Framework ppt
... connection object using the default connection string "CMS" /// public SqlConnection GetConnection() { return new SqlConnection(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString); ... http://www.microsoft.com/downloads/details.aspx?FamilyId=B2 4C3 708 -EEFF -4 05 5 -A86719B5 851 E7CD2&displaylang=en ASP .NET MVC Microsoft, since the inception of ASP .NET, has essentially stuck to its WebForms model with ... SqlConnection(ConfigurationManager.ConnectionStrings[conStr].ConnectionString); } SqlConnection conn = GetConnection(); // uses the default connection string SqlConnection conn2 = GetConnection("CMS2"); // uses...
Ngày tải lên: 15/03/2014, 07:20
Pro c# 2010 and the NET 4 platform, troelsen, 5ed, apress, 2010
... Building C# Applications .41 ■ ■ ■ Part 2: Core C# Programming Constructs 71 ■ Chapter 3: Core C# Programming Constructs, Part I 73 ■ Chapter 4: Core C# Programming Constructs, ... 102 7 Building a WCF Service 103 2 Hosting the WCF Service . 103 6 Building the WCF Client Application 1 04 6 Simplifying Configuration Settings with WCF 4 .0 1 05 0 ... 50 Building NET Applications Using Visual C# 201 0 Express 53 Building NET Applications Using Visual Studio 201 0 54 Summary 69 ■ ■ ■ Part 2: Core C# Programming Constructs...
Ngày tải lên: 04/10/2013, 14:07
C++ GUI Programming with Qt 4, Second Edition pot
... caseCheckBox->isChecked() ? Qt::CaseSensitive 44 : Qt::CaseInsensitive; 45 if (backwardCheckBox->isChecked()) { 46 emit findPrevious(text, cs); 47 } else { 48 emit findNext(text, cs); 49 } 50 } 51 void ... caseCheckBox->isChecked() ? Qt::CaseSensitive 44 : Qt::CaseInsensitive; 45 if (backwardCheckBox->isChecked()) { 46 emit findPrevious(text, cs); 47 } else { 48 emit findNext(text, cs); 49 } 50 } 51 void ... regular expression class Qt won the Software Development Times "Jolt Productivity Award" in 200 2 In the summer of 20 05 , Qt 4 .0 was released With about 50 0 classes and more than 900 0 functions, Qt is...
Ngày tải lên: 31/03/2014, 10:21
Programming in Objective-C 2.0 edition phần 4 pot
... is at ( 40 0 , 4 20) , whose width is 50 , and whose height is 60 w = 2 50 h = 75 ( 200 , 4 20) h = 1 80 ( 40 0 , 300 ) Figure 8. 10 w = 100 Intersecting rectangles If the rectangles not intersect, return one ... 0; } Program 8 .5 Output Origin at ( 100 , 200 ) Origin at ( 50 , 50 ) You changed the XYPoint myPoint from ( 100 , 200 ) in the program to ( 50 , 50 ), and apparently it also changed the rectangle’s origin! ... *** -[Fraction noSuchMethod]: unrecognized selector sent to instance 0x 103 2 80 Execution continues! When the exception occurs, the @catch block gets executed.An NSException object that contains...
Ngày tải lên: 12/08/2014, 23:22
Pro C# 5.0 and the .NET 4.5 Framework pot
... 100 1 Building a WCF Service 100 2 The [ServiceContract] Attribute 100 4 The [OperationContract] Attribute 10 05 Service Types As Operational Contracts ... Collection Objects 45 5 Accessing Contained Subobjects 45 5 Applying LINQ Queries to Nongeneric Collections 45 6 Filtering Data Using OfType() 45 7 Investigating ... 54 4 Building a Shared Assembly Version 2 .0. 0 .0 54 4 Dynamically Redirecting to Specific Versions of a Shared Assembly 54 7 Understanding Publisher Policy Assemblies 54 8...
Ngày tải lên: 06/03/2014, 03:20
Pro C# 5.0 and the .NET 4.5 Framework doc
... 100 1 Building a WCF Service 100 2 The [ServiceContract] Attribute 100 4 The [OperationContract] Attribute 10 05 Service Types As Operational Contracts ... Applying LINQ Queries to Collection Objects 45 5 Accessing Contained Subobjects 45 5 Applying LINQ Queries to Nongeneric Collections 45 6 Filtering ... 54 4 Building a Shared Assembly Version 2 .0. 0 .0 54 4 Dynamically Redirecting to Specific Versions of a Shared Assembly 54 7 Understanding Publisher Policy Assemblies 54 8...
Ngày tải lên: 28/06/2014, 15:20
BeginningASP.NET 2.0 with C# PHẦN 5 potx
... between –2, 147 ,48 3, 648 and 2, 147 ,48 3, 647 The default value is ❑ long is used for whole numbers between –9,223,372 ,03 6, 8 54 ,7 75, 808 and 9,223,372 ,03 6, 8 54 ,7 75, 807 The default value is ❑ Object is used ... Date( 20 05 , 3, 10) ; DateTime Date2 = new Date( 20 05 , 3, 5) ; TimeSpan Difference; Difference = Date1.Subtract(Date2); Label1.Text = Difference.ToString(); 2 94 Code This code creates two dates, March ... switch (condition) { case test1: case test2: // code to run if condition matches test1 or test2 break; case test3: case test4: case test5: // code to run if condition matches test3, test4, or...
Ngày tải lên: 09/08/2014, 14:20
Beginning asp net 2.0 with c phần 5 ppsx
... between –2, 147 ,48 3, 648 and 2, 147 ,48 3, 647 The default value is ❑ long is used for whole numbers between –9,223,372 ,03 6, 8 54 ,7 75, 808 and 9,223,372 ,03 6, 8 54 ,7 75, 807 The default value is ❑ Object is used ... Date( 20 05 , 3, 10) ; DateTime Date2 = new Date( 20 05 , 3, 5) ; TimeSpan Difference; Difference = Date1.Subtract(Date2); Label1.Text = Difference.ToString(); 2 94 Code This code creates two dates, March ... switch (condition) { case test1: case test2: // code to run if condition matches test1 or test2 break; case test3: case test4: case test5: // code to run if condition matches test3, test4, or...
Ngày tải lên: 09/08/2014, 18:22
Tài liệu Apress - Pro WPF in C# 2008 Windows Presentation Foundation with .NET 3.5 pptx
Ngày tải lên: 24/01/2014, 01:20
Tài liệu BEGINNING ASP.NET 4.5 in C# and VB doc
... 42 8 42 9 4 30 43 4 43 7 43 8 43 8 44 1 44 1 44 2 44 6 4 50 45 1 45 3 45 3 45 4 45 4 xxiv ftoc.indd xxiv 10/ 8/ 201 2 10: 17 :59 AM CONTENTS Single Item Controls Paging Controls Data Source Controls Other Data Controls ... 396 397 397 40 0 40 2 40 4 40 4 40 4 40 4 40 4 40 4 4 05 4 05 xxiii ftoc.indd xxiii 10/ 8/ 201 2 10: 17 :58 AM CONTENTS Handling Events Miscellaneous jQuery Functionality Common Mistakes When Working with jQuery ... Summary CHAPTER 14: LINQ AND THE ADO .NET ENTITY FRAMEWORK Introducing LINQ LINQ to Objects LINQ to XML LINQ to ADO .NET 45 5 45 5 45 6 45 6 45 6 45 6 46 3 46 4 46 6 47 2 47 3 47 9 47 9 49 3 49 4 49 7 49 8 49 9 49 9 49 9...
Ngày tải lên: 15/02/2014, 07:20
Beginning ASp.NET 4.5 in C# potx
... application, you deploy your compiled code to a live web server 10 CHAPTER ■ The Big Picture Source Code in VB 20 05 Source Code in C# Source Code in Another NET Language VB 20 05 Compiler (vbc.exe) ... ASP .NET includes NET basics, the C# language, and topics that any NET developer could use, such as component-based programming and database access.) Figure 1 -4 shows the NET class library and CLR—the ... Performance: A typical ASP .NET application is extremely fast, because ASP .NET code is compiled to machine code before it’s executed However, processor-crunching algorithms still can’t match the...
Ngày tải lên: 06/03/2014, 03:20