Tài liệu C Sharp part10 doc

2 293 0
Tài liệu C Sharp part10 doc

Đang tải... (xem toàn văn)

Thông tin tài liệu

ví dụ một! Built in Attributes ví dụ thể hiện một hàm dùng cho Debug PHP Code: using System; using System.Diagnostics; namespace AdvancedDotnet { class MainClass { [Conditional("DEBUG")] public static void MsgDebug(string msg){ Console.WriteLine(msg); } public static void Main() { Console.WriteLine("this testing for ConditionalAttribute, Before calling MsgDeb ug()"); MsgDebug("Trying out Attributes"); Console.Read(); } } } khi chay chú ý ở 2 chế độ Debug và Release nếu chạy Debug ta sẽ thấy Quote: this testing for ConditionalAttribute, Before calling MsgDebug() Trying out Attributes nhưng nếu chạy ở Release thì chỉ thấy Quote: this testing for ConditionalAttribute, Before calling MsgDebug() do không có nhiều thời gian nêu mình post mà không có chú thích nhiều Bro nào có gì hỏi thì cứ post nha! mình sẽ cố gắng trả lời! dauden(UDS) . cho Debug PHP Code: using System; using System.Diagnostics; namespace AdvancedDotnet { class MainClass { [Conditional("DEBUG")] public static. Attributes"); Console.Read(); } } } khi chay chú ý ở 2 chế độ Debug và Release nếu chạy Debug ta sẽ thấy Quote: this testing for ConditionalAttribute, Before calling

Ngày đăng: 15/12/2013, 02:15

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan