摘要:
//Copyright (C) Microsoft Corporation. All rights reserved. using System;using System.Collections.Generic;using System.Text; namespace Yield{ class Yield { public static class NumberList... 阅读全文
摘要:
// Copyright (C) Microsoft Corporation. All rights reserved. using System;using System.Collections;using System.Collections.Generic;using System.Text; namespace Generics_CSharp{ //Type parameter T... 阅读全文
摘要:
//Copyright (C) Microsoft Corporation. All rights reserved. // events2.csusing System;namespace MyCollections { using System.Collections; // A class that works just like ArrayList, but sends eve... 阅读全文
摘要:
//Copyright (C) Microsoft Corporation. All rights reserved. // events1.csusing System;namespace MyCollections { using System.Collections; // A delegate type for hooking up change notifications. ... 阅读全文
摘要:
//Copyright (C) Microsoft Corporation. All rights reserved. // compose.csusing System; delegate void MyDelegate(string s); class MyClass{ public static void Hello(string s) { Console.Wri... 阅读全文
摘要:
//Copyright (C) Microsoft Corporation. All rights reserved. // bookstore.csusing System; // A set of classes for handling a bookstore:namespace Bookstore { using System.Collections; // Describes... 阅读全文
摘要:
csc CondMethod.cs tracetest.cs /d:DEBUG tracetest A B C //Copyright (C) Microsoft Corporation. All rights reserved. // TraceTest.cs// compile with: /reference:CondMethod.dll// arguments: A B Cusing ... 阅读全文
摘要:
编译与执行:csc tokens2.cs tokens2 tokens2.cs ://Copyright (C) Microsoft Corporation. All rights reserved. // tokens2.csusing System;using System.Collections; public class Tokens: IEnumerable{ private s... 阅读全文
摘要:
编译与执行: csc tokens.cs tokens tokens.cs ://Copyright (C) Microsoft Corporation. All rights reserved. // tokens.csusing S... 阅读全文
摘要:
编译与执行: csc arrays.cs arrays arrays.cs ://Copyright (C) Microsoft Corporation. All rights reserved. // arrays.csusi... 阅读全文
摘要:
编译与执行: csc AnonymousDelegates.cs AnonymousDelegates AnonymousDelegates.cs ://Copyright (C) Microsoft Corpo... 阅读全文