|
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Lifetime;
namespace AsyncGen
{
/// <summary>
/// Indicates to AsyncGen that it should process this class or interface, and allows you to customize the generated code.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public sealed class GenerateAsyncClientClassAttribute : Attribute
{
/// <summary>
/// Constructs a new instance of the <see cref="GenerateAsyncClientClassAttribute"/> class.
/// </summary>
/// <remarks>The default name of the generated class is <type name with leading 'I' stripped>Client.</remarks>
public GenerateAsyncClientClassAttribute()
{
}
/// <summary>
/// Constructs a new instance of the <see cref="GenerateAsyncClientClassAttribute"/> class.
/// </summary>
/// <param name="name">The name of the client class to generate.</param>
public GenerateAsyncClientClassAttribute(string name)
{
this.className = name;
}
/// <summary>
/// Gets or sets the name of the class to generate. If this is <c>null</c> or <see cref="string.Empty"/>, the default name is used.
/// </summary>
public string ClassName
{
get { return className; }
set { className = value; }
}
private string className = string.Empty;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I got my B.Sc. in Mathematics and Computer Science from Tel Aviv University in 1997. Since then I have developed software in UNIX, Win32 and .NET. I currently live in Haifa.