KNOWNFOLDERID | Guid | Default Windows path | CSIDL | SpecialFoler | Windows | *nix | Mac |
---|---|---|---|---|---|---|---|
FOLDERID_AccountPictures | {008ca0b1-55b4-4c56-b8a8-4de4b299d3be} | %APPDATA%\Microsoft\Windows\AccountPictures | - | ||||
FOLDERID_AddNewPrograms | {de61d971-5ebc-4f02-a3a9-6c82895e5c04} | Virtual | - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text.RegularExpressions; | |
Regex re = new Regex(@"\Gbar", RegexOptions.Compiled); | |
string fooBarString = @" bar"; | |
var match1 = re.Match(fooBarString, 1); | |
Console.WriteLine(String.Format("Match 1 sucess: {1} {0}", match1.Success, match1.Index)); | |
var match2 = re.Match(fooBarString, 1, fooBarString.Length-1); | |
Console.WriteLine(String.Format("Match 2 sucess: {1} {0}", match1.Success, match2.Index)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.Intrinsics; | |
using System.Runtime.Intrinsics.X86; | |
Vector128<byte> value = Vector128.Create((byte)0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); | |
Vector128<byte> mask = Vector128.Create((byte)0b01000100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); | |
// PSHUFB -- result[i] = (mask[i] & 0x80) ? 0 : value[mask[i] & 15] | |
Vector128<byte> result1 = Ssse3.Shuffle(value, mask); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"area-AssemblyLoader-coreclr", "@jeffschwMSFT", | |
"area-AssemblyLoader-mono", "@lambdageek", | |
"area-Build-mono", "@steveisok", | |
"area-Codegen-AOT-mono", "@SamMonoRT", | |
"area-CodeGen-coreclr", "@JulieLeeMSFT", | |
"area-Codegen-Interpreter-mono", "@SamMonoRT", | |
"area-Codegen-JIT-mono", "@SamMonoRT", | |
"area-CodeGen-LLVM-mono", "@SamMonoRT", | |
"area-Codegen-meta-mono", "@SamMonoRT", | |
"area-CoreLib-mono", "@marek-safar", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This test should apply equally to Unix, but this reliably hits a particular one of the | |
// myriad ways that assembly load can fail | |
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))] | |
public void LoadFile_ValidPEBadIL_ThrowsBadImageFormatExceptionWithPath() | |
{ | |
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "kernelbase.dll"); | |
if (!File.Exists(path)) | |
return; | |
AssertExtensions.ThrowsContains<BadImageFormatException>(() => Assembly.LoadFile(path), path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.InvalidOperationException: <some regular exception> | |
at _1.Program.<>c.<Main>b__0_0() in C:\proj\30\ConsoleApp1\Program.cs:line 21 | |
at _1.Program.Wrap(Action cb) in C:\proj\30\ConsoleApp1\Program.cs:line 69 | |
System.AggregateException: <aggmsg> (<outer1msg> (Parameter 'myarg')) (<outer2msg>) | |
____________________________________________________________________________________________________ | |
|System.ArgumentException: <outer1msg> (Parameter 'myarg') | |
| at _1.Program.F(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 177 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.InvalidOperationException: <some regular exception> | |
at _1.Program.<>c.<Main>b__0_0() in C:\proj\30\ConsoleApp1\Program.cs:line 21 | |
at _1.Program.Wrap(Action cb) in C:\proj\30\ConsoleApp1\Program.cs:line 69 | |
System.AggregateException: <aggmsg> (<outer1msg> (Parameter 'myarg')) (<outer2msg>) | |
____________________________________________________________________________________________________ | |
|System.ArgumentException: <outer1msg> (Parameter 'myarg') | |
| at _1.Program.F(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 177 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.InvalidOperationException: <some regular exception> | |
at _1.Program.<>c.<Main>b__0_0() in C:\proj\30\ConsoleApp1\Program.cs:line 21 | |
at _1.Program.Wrap(Action cb) in C:\proj\30\ConsoleApp1\Program.cs:line 69 | |
System.AggregateException: <aggmsg> (<outer1msg> (Parameter 'myarg')) (<outer2msg>) | |
---> System.ArgumentException: <outer1msg> (Parameter 'myarg') | |
at _1.Program.F(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 169 | |
at _1.Program.E(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 162 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.InvalidOperationException: <some regular exception> | |
at _1.Program.<>c.<Main>b__0_0() in C:\proj\30\ConsoleApp1\Program.cs:line 21 | |
at _1.Program.Wrap(Action cb) in C:\proj\30\ConsoleApp1\Program.cs:line 69 | |
System.AggregateException: <aggmsg> (<outer1msg> (Parameter 'myarg')) (<outer2msg>) | |
---> System.ArgumentException: <outer1msg> (Parameter 'myarg') | |
at _1.Program.F(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 169 | |
at _1.Program.E(String type, String msg) in C:\proj\30\ConsoleApp1\Program.cs:line 162 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Runtime.ExceptionServices; | |
using System.IO; | |
using System.Net.Http; | |
using System.Reflection; | |
using System.Security; | |
using System.Security.Authentication; | |
using System.Threading.Tasks; | |
using System.Diagnostics; |