Talking about Chris Smith’s completely unique view : Neat nuggets of .NET – The Conditional attribute

 

Chris Smith’s completely unique view : Neat nuggets of .NET – The Conditional attribute, offered a cool approach to easily compiling different versions of your app (i.e. Trial, Full, 10 user version, etc)

 

using System.Diagnostics;

[Conditional("DEBUG")]
static private void
method1()
{
   
Console.WriteLine("This only works in DEBUG mode."
);
}

[Conditional("custom")]
static private void
method2()
{
   Console.WriteLine("This only works when ‘custom’ is defined"
);
}

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Talking about Chris Smith’s completely unique view : Neat nuggets of .NET – The Conditional attribute

  1. fast says:

    http://www.batteryfast.com.au/hp/nc6120.htm Hp nc6200 Batteryhttp://www.batteryfast.com.au/hp/nc6400.htm Hp nc6400 Batteryhttp://www.batteryfast.com.au/hp/nc8230.htm Hp nc8230 Batteryhttp://www.batteryfast.com.au/hp/nx6100.htm Hp nx6100 Batteryhttp://www.batteryfast.com.au/hp/nx6120.htm Hp nx6120 Batteryhttp://www.batteryfast.com.au/hp/pavilion-dv2000.htm Hp pavilion dv2000 Batteryhttp://www.batteryfast.com.au/hp/pavilion-dv6000.htm Hp pavilion dv6000 Batteryhttp://www.batteryfast.com.au/dell/inspiron-6400.htm Dell inspiron 6400 Batteryhttp://www.batteryfast.com.au/dell/kd476.htm Dell kd476 Batteryhttp://www.batteryfast.com.au/dell/kr-onx511.htm Dell kr-onx511 Batteryhttp://www.batteryfast.com.au/dell/latitude-d620.htm Dell latitude d620 Batteryhttp://www.batteryfast.com.au/dell/latitude-d630.htm Dell latitude d630 Batteryhttp://www.batteryfast.com.au/dell/latitude-d810.htm Dell latitude d810 Batteryhttp://www.batteryfast.com.au/dell/latitude-d820.htm Dell latitude d820 Batteryhttp://www.batteryfast.com.au/dell/latitude-d830.htm Dell latitude d830 Batteryhttp://www.batteryfast.com.au/dell/vostro-1500.htm Dell vostro 1500 Batteryhttp://www.batteryfast.com.au/dell/vostro-1700.htm Dell vostro 1700 Batteryhttp://www.batteryfast.com.au/hp/nc6120.htm Hp nc6120 Batteryhttp://www.batteryfast.com.au/hp/nc6120.htm Hp nc6200 Batteryhttp://www.batteryfast.com.au/hp/nc6400.htm Hp nc6400 Batteryhttp://www.batteryfast.com.au/hp/nc8230.htm Hp nc8230 Batteryhttp://www.batteryfast.com.au/hp/nx6100.htm Hp nx6100 Batteryhttp://www.batteryfast.com.au/hp/nx6120.htm Hp nx6120 Batteryhttp://www.batteryfast.com.au/hp/pavilion-dv2000.htm Hp pavilion dv2000 Batteryhttp://www.batteryfast.com.au/hp/pavilion-dv6000.htm Hp pavilion dv6000 Batteryhttp://www.batteryfast.com.au/hp/pavilion-tx2000.htm Hp pavilion tx2000 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-r60.htm Ibm thinkpad r60 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-t40.htm Ibm thinkpad t40 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-t42.htm Ibm thinkpad t42 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-t43.htm Ibm thinkpad t43 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-t60.htm Ibm thinkpad t60 Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-z60t.htm Ibm thinkpad z60t Batteryhttp://www.batteryfast.com.au/ibm/thinkpad-z61m.htm Ibm thinkpad z61m Batteryhttp://www.batteryfast.com.au/mitac/8050.htm Mitac 8050 Batteryhttp://www.batteryfast.com.au/mitac/bp-8050(p).htm Mitac bp-8050(p) Batteryhttp://www.batteryfast.com.au/mitac/bp-8050.htm Mitac bp-8050 Batteryhttp://www.batteryfast.com.au/laptop-ac-adapter/acer/aspire-3000.htm Acer aspire 3000 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/acer/aspire-5520.htm Acer aspire 5520 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/acer/aspire-5920.htm Acer aspire 5920 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/compaq/nc6000.htm Compaq nc6000 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/dell/1720.htm Dell 1720 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/hp/dv2000.htm Hp dv2000 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/dell/d620.htm Dell d620 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/hp/dv6000.htm Hp dv6000 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/liteon/1500.htm Liteon 1500 Adapterhttp://www.batteryfast.com.au/laptop-ac-adapter/liteon/1520.htm Liteon 1520 Adapter

Comments are closed.