I have this way to ensure that objects can be serialized in the binary file:
Bool isisritable for public static & lt; T & gt; (This T OBJ) {Return Type (T). Features. Hasfle (typeetitis) serialable) || Obj is ISerializable; }
But I can not do this for XML, for example, I can write it like this
Public Static Bull ISXMLArilizable & Lt; T & gt; () {Var type = typef (t); Return type Gate interface ("IXmlSerializable")! = Null; }
But how can I check that the XmlType attribute or something else is used?
Please, advise.
Here are some code that shows how to use safe assets:
Comments
Post a Comment