//////////////////////////////////////////////////////////////////////////////////////////////// public static void UnregisterFunctions() { _registerEnumType = null; _fillExtendType = null; _instantiateExtend = null; _launchPropertyChangedEvent = null; _launchCollectionChangedEvent = null; _getResourceKeyType = null; _registerReflectionCallbacks = null; DependencyObject.UnregisterFunctions(); DependencyProperty.UnregisterFunctions(); PropertyMetadata.UnregisterFunctions(); UIPropertyMetadata.UnregisterFunctions(); FrameworkPropertyMetadata.UnregisterFunctions(); }