Why there is no static structs in C#, but static methods within them exists?
Posted
by sfedorov1982
on Stack Overflow
See other posts from Stack Overflow
or by sfedorov1982
Published on 2010-04-10T12:36:14Z
Indexed on
2010/04/10
12:43 UTC
Read the original article
Hit count: 123
c#
// OK
struct MyStruct
{
static void Foo() { }
}
// Error
static struct MyStruct
{
}
© Stack Overflow or respective owner