/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> protected override Type ResolveClass(ObjectStreamClass desc) { string name = desc.GetName(); if (classLoader != null) { try { return classLoader.LoadClass(name); } catch (TypeLoadException) { } } // fall through to default loading return base.ResolveClass(desc); }
/// <exception cref="System.IO.IOException"></exception> /// <exception cref="System.TypeLoadException"></exception> protected override Type ResolveClass(ObjectStreamClass streamClass) { Type c = Sharpen.Runtime.GetType(streamClass.GetName(), false, loader); if (c == null) { return base.ResolveClass(streamClass); } else { return c; } }