سؤال

Is there any similar datatype that I can use to save data in C# in the same way it is saved in TBXML Objective C?

هل كانت مفيدة؟

المحلول

Googling TBXML shows an XML parser. If this is the case, C# does have XML-parsing capabilities in the System.Xml namespace.

نصائح أخرى

You can store (virtually) any datatype using XmlSerializer see http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx

You can specify whether a property of an object is to be stored using property attributes otherwise the serializer will use reflection to store the whole object.

See http://www.codeproject.com/Articles/14064/Using-the-XmlSerializer-Attributes for a decent tutorial

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top