-1
Zum BeispielWie mache ich ein konstantes Objekt in C#?
class A
{
public const B b = new B(); // ??? error, expression being assigned must be constant
}
class B
{
public int i {get; set;}
}
Wie ein konstantes Objekt in C# machen?
Die referenzierte doppelte Frage hat eine wirklich schlechte akzeptierte Antwort. – Adrian