You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the REPL to experiment a little with the objects available in System.Xml.Serialization. I import the namespace, create a simple class and instantiate it:
> using System.Xml.Serialization;
> public class A
{
public string MyPublicField = "test";
}
> A a = new A();
Then I try to create an instance of XmlSerializer along the lines of what is shown in the docs
> XmlSerializer serializer = new XmlSerializer(typeof(A));
Unfortunately this throws an exception:
Identifier 'Submission2' is not CLS-compliant. (Parameter 'ident')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the REPL to experiment a little with the objects available in
System.Xml.Serialization
. I import the namespace, create a simple class and instantiate it:Then I try to create an instance of
XmlSerializer
along the lines of what is shown in the docsUnfortunately this throws an exception:
Why does this occur and how can I fix it?
Beta Was this translation helpful? Give feedback.
All reactions