'function' : can only apply __transient to a data member
The __transient keyword can only be applied to class data members.
The following sample generates C3254:
#using<mscorlib.dll> __gc __serializable class X { __transient func(); // C3254 }; void main() { }