Definition at line 5 of file ResourceUtility.cs.
◆ Combine()
static string BGC.Utility.ResourceUtility.Combine |
( |
string |
path1, |
|
|
string |
path2 |
|
) |
| |
|
inlinestatic |
Definition at line 39 of file ResourceUtility.cs.
41 bool p1NullOrEmpty =
string.IsNullOrEmpty(path1);
42 bool p2NullOrEmpty =
string.IsNullOrEmpty(path2);
44 if (p1NullOrEmpty && p2NullOrEmpty)
48 else if (p1NullOrEmpty)
52 else if(p2NullOrEmpty)
57 return $
"{path1}{FileDelimiter}{path2}";
◆ ConvertToValidResourcePath()
static bool BGC.Utility.ResourceUtility.ConvertToValidResourcePath |
( |
ref string |
path | ) |
|
|
inlinestatic |
Checks path and returns true if a valid resource path was found
- Parameters
-
- Returns
Definition at line 16 of file ResourceUtility.cs.
20 for (
int i = 0; i < Dirs.Length; ++i)
24 Dirs = Dirs.GetRange(i + 1, Dirs.Length);
26 string[] fileName = Dirs[Dirs.Length - 1].Split(
Extension);
27 fileName = fileName.GetRange(0, fileName.Length - 1);
28 Dirs[Dirs.Length - 1] = fileName.Join(
".");
const string ResourcesDirectory
◆ Extension
const char BGC.Utility.ResourceUtility.Extension = '.' |
◆ FileDelimiter
const char BGC.Utility.ResourceUtility.FileDelimiter = '/' |
◆ ResourcesDirectory
const string BGC.Utility.ResourceUtility.ResourcesDirectory = "Resources" |
The documentation for this class was generated from the following file: