1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- namespace BepInEx.Common
- {
-
-
-
- [Obsolete("This class has moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static class Utility
- {
-
-
-
- [Obsolete("This property has been moved, please use Paths.GameRootPath instead", true)]
- public static string ExecutingDirectory
- => Paths.GameRootPath;
-
-
-
- [Obsolete("This property has been moved, please use Paths.PluginPath instead", true)]
- public static string PluginsDirectory
- => Paths.PluginPath;
-
-
-
-
-
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static string CombinePaths(params string[] parts) =>
- BepInEx.Utility.CombinePaths(parts);
-
-
-
-
-
-
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static bool SafeParseBool(string input, bool defaultValue = false) =>
- BepInEx.Utility.SafeParseBool(input, defaultValue);
-
-
-
-
-
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static string ConvertToWWWFormat(string path)
- => BepInEx.Utility.ConvertToWWWFormat(path);
-
-
-
-
-
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static bool IsNullOrWhiteSpace(this string self)
- => BepInEx.Utility.IsNullOrWhiteSpace(self);
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static IEnumerable<TNode> TopologicalSort<TNode>(IEnumerable<TNode> nodes,
- Func<TNode, IEnumerable<TNode>> dependencySelector)
- => BepInEx.Utility.TopologicalSort(nodes, dependencySelector);
-
-
-
-
-
-
-
- [Obsolete("This method has been moved, please use BepInEx.Utility instead of BepInEx.Common.Utility", true)]
- public static bool TryResolveDllAssembly(AssemblyName assemblyName, string directory, out Assembly assembly)
- => BepInEx.Utility.TryResolveDllAssembly(assemblyName, directory, out assembly);
- }
- }
|