public static void UnsetFileManager() { if (!Sass_Api.sass_file_manager_get_is_initialized()) { return; } Sass_Api.sass_file_manager_set_is_initialized(false); Sass_Api.sass_file_manager_set_supports_conversion_to_absolute_path(false); Sass_Api.sass_file_manager_unset_get_current_directory_delegate(); Sass_Api.sass_file_manager_unset_file_exists_delegate(); Sass_Api.sass_file_manager_unset_is_absolute_path_delegate(); Sass_Api.sass_file_manager_unset_to_absolute_path_delegate(); Sass_Api.sass_file_manager_unset_read_file_delegate(); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { _getCurrentDirectoryDelegateUtf16 = null; _fileExistsDelegateUtf16 = null; _isAbsolutePathDelegateUtf16 = null; _toAbsolutePathDelegateUtf16 = null; _readFileDelegateUtf16 = null; } else { _getCurrentDirectoryDelegateUtf8 = null; _fileExistsDelegateUtf8 = null; _isAbsolutePathDelegateUtf8 = null; _toAbsolutePathDelegateUtf8 = null; _readFileDelegateUtf8 = null; } }
public static void UnsetFileManager() { Sass_Api.sass_file_manager_set_is_initialized(false); Sass_Api.sass_file_manager_set_supports_conversion_to_absolute_path(false); Sass_Api.sass_file_manager_unset_get_current_directory_delegate(); Sass_Api.sass_file_manager_unset_file_exists_delegate(); Sass_Api.sass_file_manager_unset_is_absolute_path_delegate(); Sass_Api.sass_file_manager_unset_to_absolute_path_delegate(); Sass_Api.sass_file_manager_unset_read_file_delegate(); if (Utils.IsWindows()) { _getCurrentDirectoryDelegateUtf16 = null; _fileExistsDelegateUtf16 = null; _isAbsolutePathDelegateUtf16 = null; _toAbsolutePathDelegateUtf16 = null; _readFileDelegateUtf16 = null; } else { _getCurrentDirectoryDelegateUtf8 = null; _fileExistsDelegateUtf8 = null; _isAbsolutePathDelegateUtf8 = null; _toAbsolutePathDelegateUtf8 = null; _readFileDelegateUtf8 = null; } }