Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Verbs

string [] System.Diagnostics.ProcessStartInfo.Verbs
get

Definition at line 199 of file ProcessStartInfo.cs.

200 {
201 get
202 {
204 if (string.IsNullOrEmpty(extension))
205 {
206 return Array.Empty<string>();
207 }
208 using RegistryKey registryKey = Registry.ClassesRoot.OpenSubKey(extension);
209 if (registryKey == null)
210 {
211 return Array.Empty<string>();
212 }
213 string text = registryKey.GetValue(string.Empty) as string;
214 if (string.IsNullOrEmpty(text))
215 {
216 return Array.Empty<string>();
217 }
218 using RegistryKey registryKey2 = Registry.ClassesRoot.OpenSubKey(text + "\\shell");
219 if (registryKey2 == null)
220 {
221 return Array.Empty<string>();
222 }
223 string[] subKeyNames = registryKey2.GetSubKeyNames();
225 string[] array = subKeyNames;
226 foreach (string text2 in array)
227 {
228 if (!string.Equals(text2, "new", StringComparison.OrdinalIgnoreCase))
229 {
230 list.Add(text2);
231 }
232 }
233 return list.ToArray();
234 }
235 }
void Add(TKey key, TValue value)
static ? string GetExtension(string? path)
Definition Path.cs:168