¡@

Home 

c# Programming Glossary: extensions

C# get thumbnail from file via windows api

http://stackoverflow.com/questions/1439719/c-sharp-get-thumbnail-from-file-via-windows-api

thumbnails are provided by core and third party shell extensions. I know how to extend the shell to provide thumbnails to Windows...

Windows shell extension with C#

http://stackoverflow.com/questions/2194572/windows-shell-extension-with-c-sharp

good pointers for getting started c# windows shell shell extensions share improve this question A Raymond's post Do not write.. question A Raymond's post Do not write in process shell extensions in managed code . A recent follow up Now that version 4 of the.. side by side runtimes is it now okay to write shell extensions in managed code The bottom line is no it is not okay The Guidance..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

. Doing SSL with System.Web.Mail is a gross mess of hacky extensions. using System.Net using System.Net.Mail var fromAddress new..

GetFiles with multiple extentions [duplicate]

http://stackoverflow.com/questions/3527203/getfiles-with-multiple-extentions

GetFilesByExtensions this DirectoryInfo dir params string extensions if extensions null throw new ArgumentNullException extensions.. this DirectoryInfo dir params string extensions if extensions null throw new ArgumentNullException extensions IEnumerable.. if extensions null throw new ArgumentNullException extensions IEnumerable FileInfo files Enumerable.Empty FileInfo foreach..

EF Including Other Entities (Generic Repository pattern)

http://stackoverflow.com/questions/5376421/ef-including-other-entities-generic-repository-pattern

now loop over the otherEntities array and append Include extensions to the query so inside the loop something like _objectContext.GetQuery..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

Explorer Extensions After developing a few Firefox Chrome extensions I've decided to try and expand my skill set by developing an.. is does anyone here have experience with in developing IE extensions that can share their knowledge This would include code samples..

All possible C# array initialization syntaxes

http://stackoverflow.com/questions/5678216/all-possible-c-sharp-array-initialization-syntaxes

of obtaining arrays exist such as the Linq ToArray extensions on IEnumerable T . Also note that in the declarations above..

How to associate a file extension to the current executable in C#

http://stackoverflow.com/questions/69761/how-to-associate-a-file-extension-to-the-current-executable-in-c-sharp

Ideally it'd also set the icon for the given file extensions to the icon for my executable. Thanks all. c# windows winforms..

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

a new version of the IDE to get new features. There are extensions being developed for NUnit like row tests etc. Visual Studio..

IQueryable extension method for linq2entities

http://stackoverflow.com/questions/10826275/iqueryable-extension-method-for-linq2entities

public static LambdaExpression GetRegistered string id Extensions return expressionList id static class Extensions summary Use.. id Extensions return expressionList id static class Extensions summary Use on object sets before using custom extension methods..

Does Parallel.ForEach limits the number of active threads?

http://stackoverflow.com/questions/1114317/does-parallel-foreach-limits-the-number-of-active-threads

yes it will limit how many threads are used. Parallel Extensions uses an appropriate number of cores based on how many you physically..

Enumerating Collections that are not inherently IEnumerable?

http://stackoverflow.com/questions/1815497/enumerating-collections-that-are-not-inherently-ienumerable

This code should do the trick public static class Extensions public static IEnumerable T GetRecursively T this IEnumerable.. discussed in All About Iterators . public static class Extensions public static IEnumerable T GetItems T this IEnumerable collection..

Parallel Sort Algorithm

http://stackoverflow.com/questions/1897458/parallel-sort-algorithm

operate on List T or Arrays and possibly using Parallel Extensions but that part isn't strictly necessary. Edit Frank Krueger provides.. this question From The Darkside in his article Parallel Extensions to the .Net Framework we have this parallel extensions version..

Partial generic type inference possible in C#?

http://stackoverflow.com/questions/2893698/partial-generic-type-inference-possible-in-c

public void SomethingDelegated public static class Extensions public static ParameterizedRegistrationBase Parameter T this.. me this Using the generic method 'ConsoleApplication16.Extensions.Parameter TReg T TReg string T ' requires 2 type arguments Using.. arguments Using the generic method 'ConsoleApplication16.Extensions.Parameter TReg T TReg string T ' requires 2 type arguments Which..

How to throttle event stream using RX?

http://stackoverflow.com/questions/3211134/how-to-throttle-event-stream-using-rx

be called. Is there a simple way to do this using Reactive Extensions Sample code static void Main string args Console.WriteLine Running.....

How do I convert Twips to Pixels in .NET?

http://stackoverflow.com/questions/4044397/how-do-i-convert-twips-to-pixels-in-net

methods for Graphics using System.Drawing static class Extensions summary Converts an integer value in twips to the corresponding..

JSON formatter in C#?

http://stackoverflow.com/questions/4580397/json-formatter-in-c

sb.Append ch break return sb.ToString static class Extensions public static void ForEach T this IEnumerable T ie Action T..

Should i use ThreadPools or Task Parallel Library for IO-bound operations

http://stackoverflow.com/questions/5213695/should-i-use-threadpools-or-task-parallel-library-for-io-bound-operations

Itr Iteration Seq Sequential Approach. PrlEx Parallel Extensions Parallel.ForEach TPL Task Parallel Library TPool ThreadPool.. on a single core environment or a multi core one Parallel Extensions TPL and ThreadPool behaves the same and gives approximate results.. ability to easily return Task results . Though Parallel Extensions is also another viable alternative. Running tests on your own..

Single-shot event subscription

http://stackoverflow.com/questions/5623658/single-shot-event-subscription

class . You could use the same approach as in Reactive Extensions Observable.FromEvent takes two delegates to subscribe to the..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

Internet Explorer Extensions After developing a few Firefox Chrome extensions I've decided.. static string RegCmd Software Microsoft Internet Explorer Extensions ComRegisterFunction public static void RegisterBHO Type type..

C++, C# and JavaScript on WinRT [closed]

http://stackoverflow.com/questions/7466303/c-c-sharp-and-javascript-on-winrt

significant changes to run. C CX Visual C Component Extensions low mid level statically typed no GC refcounting only. Closest..

Convert Dataset to XML

http://stackoverflow.com/questions/8384014/convert-dataset-to-xml

in a string try this extension method public static class Extensions public static string ToXml this DataSet ds using var memoryStream..

Convert DataTable to CSV stream

http://stackoverflow.com/questions/888181/convert-datatable-to-csv-stream

just write something quickly yourself public static class Extensions public static string ToCSV this DataTable table var result..