C # 2.0 Learning - Condition Compilation

xiaoxiao2021-04-08  317

CSC CONDMETHOD.CS TRATEST.CS / D: DEBUG

Tracetest A B C

// Copyright (c) Microsoft Corporation. All Rights Reserved.

// tracetest.cs // compile with: /Reference: Conment.dll// arguments: a b Cusing system; using system.diagnostics;

Public class traceclient {public static void main (string [] args) {trace.Message ("main start"); if (args.length == 0) {Console.WriteLine ("no arguments has been passed);} else {For (int i = 0; i

TRACE.MESSAGE ("main ending");}}

Public class trace {["debug"] PUBLIC VOID Message ("[trace ]writeline (" [trace] - " tracemessage);}}

转载请注明原文地址:https://www.9cbs.com/read-132869.html

New Post(0)