using System; using libsecondlife; using libsecondlife.AssetSystem; namespace libsecondlife.InventorySystem { /// /// Summary description for Class1. /// abstract public class InventoryBase { protected InventoryManager iManager; internal string _Name; internal InventoryBase(InventoryManager manager) { if( manager == null ) { throw new Exception( "Inventory Manager cannot be null" ); } iManager = manager; } abstract public string toXML( bool outputAssets ); protected string xmlSafe ( string str ) { if( str != null ) { string clean = str.Replace("&","&"); clean = clean.Replace("<","<"); clean = clean.Replace(">",">"); clean = clean.Replace("'","'"); clean = clean.Replace("\"","""); return clean; } else { return ""; } } } }