c# Programming Glossary: gravell
Improving performance reflection , what alternatives should I consider http://stackoverflow.com/questions/1027980/improving-performance-reflection-what-alternatives-should-i-consider create the delegate rather than on every invocation. Marc Gravell has a HyperPropertyDescriptor project which achieves even better..
Convert string[] to int[] in one string of code using LINQ http://stackoverflow.com/questions/1297231/convert-string-to-int-in-one-string-of-code-using-linq myInts Array.ConvertAll arr s int.Parse s Thanks to Marc Gravell for pointing out that the lambda can be omitted yielding a shorter..
Using CDATA with WCF REST starter kits http://stackoverflow.com/questions/1374062/using-cdata-with-wcf-rest-starter-kits advance c# wcf rest share improve this question Marc Gravell has a solution here for serializing CDATA sections. I have copied..
What is the fastest way I can compare two equal-size bitmaps to determine whether they are identical? http://stackoverflow.com/questions/2031217/what-is-the-fastest-way-i-can-compare-two-equal-size-bitmaps-to-determine-whethe iterations each. Here are the results CompareByInts Marc Gravell 1107ms CompareByMD5 Skilldrick 4222ms CompareByMask GrayWizardX.. answer even more of a boost CompareByInts Marc Gravell 944ms CompareByMD5 Skilldrick 4275ms CompareByMask GrayWizardX..
Copy values from one object to another http://stackoverflow.com/questions/2624823/copy-values-from-one-object-to-another c# share improve this question Jon Skeet and Marc Gravell have a library called MiscUtil . Inside MiscUtil.Reflection..
Generate random enum in C# 2.0 http://stackoverflow.com/questions/319814/generate-random-enum-in-c-sharp-2-0 values new Random .Next 0 values.Length Thanks to @ Marc Gravell for ponting out that the max in Random.Next min max is exclusive...
Is F# really better than C# for math? http://stackoverflow.com/questions/379722/is-f-really-better-than-c-sharp-for-math generic . Also I think the following point from Marc Gravell isn't a valid objection From a maintenance angle I'm of the..
ArrayList vs List<object> http://stackoverflow.com/questions/391088/arraylist-vs-listobject in anything other than type safety. EDIT Thanks Marc Gravell and Sean for the answer. Sorry I can only pick 1 as answer so..
Generic C# Code and the Plus Operator http://stackoverflow.com/questions/4039694/generic-c-sharp-code-and-the-plus-operator I ended up using Expressions an approach outlined by Marc Gravell that I found by following links off of spinon's comment. http..
How to write c# service that I can also run as a winforms program? http://stackoverflow.com/questions/421516/how-to-write-c-sharp-service-that-i-can-also-run-as-a-winforms-program without InstallUtil.exe using this excellent code by Marc Gravell It uses the following line to test if to run the gui or run..
Fast and compact object serialization in .NET http://stackoverflow.com/questions/549128/fast-and-compact-object-serialization-in-net
How to bind a list count to a label in WinForms? http://stackoverflow.com/questions/639894/how-to-bind-a-list-count-to-a-label-in-winforms winforms share improve this question According to Marc Gravell for this problem he has suggested to create a facade that wraps..
asp.net mvc localization http://stackoverflow.com/questions/660872/asp-net-mvc-localization could also introduce a constraint even tighter than Marc Gravell and Freddy Rios. something like en de fr es . This would mean..
How to convert a String to its equivalent Expression Tree? http://stackoverflow.com/questions/821365/how-to-convert-a-string-to-its-equivalent-expression-tree and in this instance is TRUE. Many thanks to Marc Gravell. c# lambda antlr dsl predicate share improve this question..
|