コード例 #1
0
        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);
        }
コード例 #2
0
        internal bool UnloadExtension <T>() where T : XmppExtension
        {
            XmppExtension item = this.GetExtension <T>();

            return((item != null) ? this.extensions.Remove(item) : false);
        }