internal T LoadExtension <T>() where T : XmppExtension { XmppExtension item = Activator.CreateInstance(typeof(T), new object[] { this }) as XmppExtension; this.extensions.Add(item); return((T)item); }
internal bool UnloadExtension <T>() where T : XmppExtension { XmppExtension item = this.GetExtension <T>(); return((item != null) ? this.extensions.Remove(item) : false); }