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
| void Main() | |
| { | |
| DumpAnonymousType(new { i = 42, j = 13 }); | |
| DumpAnonymousType((i: 42, j: 13)); | |
| } | |
| void DumpAnonymousType(object o) | |
| { | |
| var properties = o.GetType().GetProperties(); | |
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; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| var sb = new StringBuilder | |
| { | |
| m_ChunkChars = "cd".ToCharArray(), |
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
| { | |
| "frameworks": { | |
| "net46":{ | |
| "dependencies": { | |
| "Octokit": "0.24.0" | |
| } | |
| } | |
| } | |
| } |
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.Concurrent; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| class Program | |
| { | |
| static void Main() |
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.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.Text; | |
| class Program | |
| { |
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.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| class Program | |
| { | |
| static unsafe void Main() | |
| { | |
| Console.WriteLine($"Sequential: {sizeof(SequentialS)}"); | |
| Console.WriteLine($"Auto: {sizeof(AutoS)}"); |
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
| idumps c cswikibooks now cswikibooks-20170301-pages-meta-history.xml ph cswikibooks.id | |
| idumps r cswikibooks.id cswikibooks.xml | |
| ls -l | |
| cmp cswikibooks.xml cswikibooks-20170301-pages-meta-history.xml | |
| sed '1445380q;d' cswikibooks-20170301-pages-meta-history.xml | |
| idumps u localwiki 1 php /var/www/html/mediawiki/maintenance/dumpBackup.php /var/www/html/mediawiki/maintenance/fetchText.php ph localwiki1.id | |
| idumps r localwiki1.id localwiki1.xml | |
| vi localwiki1.xml |
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 BenchmarkDotNet.Running; | |
| using BenchmarkDotNet.Attributes; | |
| namespace Benchmark | |
| { | |
| public static class Program | |
| { | |
| public static void Main() | |
| { | |
| BenchmarkRunner.Run<RefProperty>(); |
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.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using System.Threading.Tasks.Dataflow; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; |
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
| string path = @"E:\Users\Svick\git\visualfsharpdocs\docs\conceptual"; | |
| var files = Directory.EnumerateFiles(path); | |
| Regex regex = new Regex(@"\[([^]]*?)\]\(http.*?\)"); | |
| foreach (var file in files) | |
| { | |
| var lines = File.ReadAllLines(file); | |