Defines the friendly name of a player.

Namespace:  SoftwareArchitects.Battleships
Assembly:  SoftwareArchitects.Battleships (in SoftwareArchitects.Battleships.dll)
Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
[AttributeUsageAttribute(AttributeTargets.Class)]
public class PlayerAttribute : Attribute
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class)> _
Public Class PlayerAttribute _
	Inherits Attribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class)]
public ref class PlayerAttribute : public Attribute

Examples

CopyC#
using SoftwareArchitects.Battleships;

namespace Battleships
{
    [Player(Name = "Demo Player")]
    public class DemoPlayer : Player
    {
        ...
    }
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    SoftwareArchitects.Battleships..::.PlayerAttribute

See Also