Linq To CSV

LinqToCSV Class namespace FooFoo { public static class LinqToCSV { public static string ToCsv<T>(this IEnumerable<T> items) where T : class { var csvBuilder = new StringBuilder(); var properties = typeof(T).GetProperties(); foreach (T item in items) { string line = string.Join(“,”,properties.Select(p => p.GetValue(item, null).ToCsvValue()).ToArray()); csvBuilder.AppendLine(line); } return csvBuilder.ToString(); } private static string ToCsvValue<T>(this T item) { if(item == null) […]

Fix of “The breakpoint will not currently be hit. No symbols have been loaded for this document.”

Start debugging, as soon as you’ve arrived at a breakpoint or used Debug &gt; Break All, use Debug &gt; Windows &gt; Modules. You’ll see a list of all the assemblies that are loaded into the process. Locate the one you want to get debug info for. Right-click it and select Symbol Load Information. You’ll get a dialog that lists all […]

Lazydocker docker cli dashboard

The lazier way to manage everything dockerhttps://github.com/jesseduffield/lazydocker324 forks.9,841 stars.34 open issues.Recent commits: README: lzd docker alias, Dawid Dziurla Merge branch 'reworking-dockerfile', Dawid Dziurla Merge pull request #132 from muesli/gocritic-fixesSimplified code a bit, GitHub Merge pull request #133 from muesli/unconvert-fixesRemoved unnecessary string conversion, GitHub Merge pull request #131 from muesli/gosimple-fixesSimplified return and bool check code, GitHub

How To Get An In Depth Insight Of Your Code With NDepend static analysis tool

As a software developer, you may have come across a situation where you need to measure the quality the source code you have at hand. How well is the code written ? is it easily maintainable ? and similar important questions. Obviously, you don’t want to go through each line of code in the whole project to determine […]

map vs filter vs reduce

Array.map – map all values to an expression. 1] Expression value + 1 is applied to every item in the original array. 2] .map() returns a modified copy of the array leaving original untouched. 3] Result: [2,3,4,5,6,7,8] (a copy of the original array is created.) Array.filter – keep all that match a condition. NOTE: there is a small mistake in the animation. It should return [6,7], not [6,7,8]. I’ll fix it shortly. . . […]

1 2 3 30