-
Notifications
You must be signed in to change notification settings - Fork 0
/
PrefixMap.cs
37 lines (33 loc) · 1.28 KB
/
PrefixMap.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Decompiled with JetBrains decompiler
// Type: WebOrderImportCraft.OrderPrefixMap
// Assembly: WebOrderImportCraft, Version=1000.510.8894.24695, Culture=neutral, PublicKeyToken=bf11c4f15ab4e1ef
// MVID: F965BC17-D6AC-43D0-B104-3E53F0C380F8
// Assembly location: P:\Synergy\VMAWS Custom Apps\WebOrderImportCraft\WebOrderImportCraft.exe
using System.Collections.Generic;
namespace WebOrderImportCraft
{
public static class OrderPrefixMap
{
public static Dictionary<string, string> _prefixMapDictionary = (Dictionary<string, string>) null;
private static char[] brandSep = new char[1]{ '/' };
public static string Get(string key)
{
if (!string.IsNullOrEmpty(key) && OrderPrefixMap._prefixMapDictionary != null && OrderPrefixMap._prefixMapDictionary.ContainsKey(key))
{
string empty = string.Empty;
if (OrderPrefixMap._prefixMapDictionary.TryGetValue(key, out empty) && !string.IsNullOrWhiteSpace(empty))
return empty;
}
return key;
}
public static Dictionary<string, string> prefixMapDictionary
{
get
{
if (OrderPrefixMap._prefixMapDictionary == null)
OrderPrefixMap._prefixMapDictionary = new Dictionary<string, string>();
return OrderPrefixMap._prefixMapDictionary;
}
}
}
}