private void Write2_ImageProvider(string n, string ns, ImageProvider o, bool isNullable, bool needType) { if (o == null) { if (isNullable) { base.WriteNullTagLiteral(n, ns); } } else if (!needType) { System.Type type = o.GetType(); if (type != typeof(ImageProvider)) { if (type == typeof(ShellImageProvider)) { this.Write54_ShellImageProvider(n, ns, (ShellImageProvider) o, isNullable, true); } else { if (type != typeof(CustomImageProvider)) { throw base.CreateUnknownTypeException(o); } this.Write3_CustomImageProvider(n, ns, (CustomImageProvider) o, isNullable, true); } } } }
public static void ResetDefaultImageProvider() { IDisposable fDefault = FDefault as IDisposable; if (fDefault != null) { fDefault.Dispose(); } FDefault = null; }