A simple C# method with an optional parameter declared using the OptionalAttribute as
namespace ClassLibrary11 { public class Class1 { public in
Optional parameters have been introduced with .NET 4.0 in C#, I am not sure what you are building with VS 2008 targetting an older framework, but I would say you should use them only in VS 2010 and .NET 4.0 Named and Optional Arguments