M
Michael
Hello all,
using System;
namespace Test
{
[AttributeUsage(AttributeTargets.Class,
AllowMultiple = false)]
public class FactoryAttribute : System.Attribute
{
public string Identifier { get { return id_; } }
private string id_;
public FactoryAttribute(string identifier)
{
id_ = identifier;
}
}
[FactoryAttribute("MaladieLundi")]
class Foo
{
}
}
Is it possible IN Foo to get the value of the identifier of
FactoryAttribute?
thanks in advance
Mike
using System;
namespace Test
{
[AttributeUsage(AttributeTargets.Class,
AllowMultiple = false)]
public class FactoryAttribute : System.Attribute
{
public string Identifier { get { return id_; } }
private string id_;
public FactoryAttribute(string identifier)
{
id_ = identifier;
}
}
[FactoryAttribute("MaladieLundi")]
class Foo
{
}
}
Is it possible IN Foo to get the value of the identifier of
FactoryAttribute?
thanks in advance
Mike