¡@

Home 

c# Programming Glossary: net

Order of LINQ extension methods does not affect performance?

http://stackoverflow.com/questions/10110013/order-of-linq-extension-methods-does-not-affect-performance

Q Can somebody explain why i'm on the wrong track c# .net linq share improve this question I would have guessed that.. tell when order does matter for performance reasons. The net result of give me the red cards and then sort them is exactly..

new keyword in method signature

http://stackoverflow.com/questions/1014295/new-keyword-in-method-signature

from MSDN MSDN Reference Here is an example I found on the net from a Microsoft MVP that made good sense Link to Original public..

C# get thumbnail from file via windows api

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

thumbnails and can't possibly parse every file on the planet to make my own thumbnails. Clarification Many answers seem to.. archive 2009 06 12 windows api code pack for microsoft net framework.aspx ShellFile shellFile ShellFile.FromFilePath pathToYourFile..

Inno Setup for Windows service?

http://stackoverflow.com/questions/1449994/inno-setup-for-windows-service

Is it required run installutil.exe MyService.exe net start MyService Also I have to provide an uninstaller which..

C# producer/consumer

http://stackoverflow.com/questions/1656404/c-sharp-producer-consumer

below original code was referenced at http bytes.com topic net answers 575276 producer consumer#post2251375 using System using..

Reading/writing an INI file

http://stackoverflow.com/questions/217902/reading-writing-an-ini-file

I want to know if there is anything similar for C# c# .net inifile share improve this question The creators of the .NET..

How do I ensure a form displays on the “additional” monitor in a dual monitor scenario? [duplicate]

http://stackoverflow.com/questions/2561104/how-do-i-ensure-a-form-displays-on-the-additional-monitor-in-a-dual-monitor-sc

you provide code then it will be better. i searched from net and found some articles to get primary and secondary screens...

Performance Tests of Serializations used by WCF Bindings

http://stackoverflow.com/questions/3790728/performance-tests-of-serializations-used-by-wcf-bindings

some simple code for this kind of measurement. c# .net wcf performance wcf binding share improve this question .. Length 528 Serialize 12050 Deserialize 30558 protobuf net v2 Length 112 Serialize 217 Deserialize 250 so I conclude protobuf.. 112 Serialize 217 Deserialize 250 so I conclude protobuf net v2 the winner... Numbers updated with .NET 4.5 and current library..

Calculating Bandwidth

http://stackoverflow.com/questions/442409/calculating-bandwidth

packets sent and received by an exe application via net have loooked into IPGlobalProperties and other classes ...... n received by a single application.. i have checked http netstatagent.com I need something similar... is there anything in.. I need something similar... is there anything in .net which can help me My app connects to web service to send some..

Why aren't C# static class extension methods supported?

http://stackoverflow.com/questions/4909156/why-arent-c-sharp-static-class-extension-methods-supported

In short the suggested feature has never met our bar for net benefit over cost and we've always had more important features..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

or some other means of communication only. Thanks c# .net ipc share improve this question IPC in .Net can be achieved.. http msdn.microsoft.com en us library system.servicemodel.netnamedpipebinding.aspx Remoting The original IPC framework released.. .NET Remoting Second Edition Win32 RPC using csharptest net RpcLibrary I came across a project recently that has wrapped..

Access a Remote Directory from C#

http://stackoverflow.com/questions/5433570/access-a-remote-directory-from-c-sharp

a Remote Directory from C# I am trying to access a remote network share from a C# program in asp.net. What I need is something.. to access a remote network share from a C# program in asp.net. What I need is something like function download dirname directory.. provide them. Thanks for any help you can offer. c# asp.net file transfer network share share improve this question ..

Print Pdf in C#

http://stackoverflow.com/questions/5566186/print-pdf-in-c-sharp

Pdf in C# I'm new to c#. I was looking all over the net for tutorials on how to print pdf but couldn't find one. Then.. dll in VB.NET or C# then print it. If so how c# .net pdf printing share improve this question A very straight..

ObservableCollection Doesn't support AddRange method, so I get notified for each item added, besides what about INotifyCollectionChanging?

http://stackoverflow.com/questions/670577/observablecollection-doesnt-support-addrange-method-so-i-get-notified-for-each

. Related Q http stackoverflow.com questions 57020 which net collection for adding multiple objects at once and getting notified.. multiple objects at once and getting notified c# vb.net observablecollection addrange inotifycollectionchanged share..

Calling C# code from C++

http://stackoverflow.com/questions/778590/calling-c-sharp-code-from-c

from C . http www.infoq.com articles in process java net integration suggests using ICLRRuntimeHost ExecuteInDefaultAppDomain..

How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects

http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base

List of base class objects I am trying to extend the JSON.net example given here http james.newtonking.com projects json help.. and examples around this are pretty sparse on the net. I can't seem to get the the overridden ReadJson method implementation.. implementation in JsonConverter right. c# json json.net deserialization newtonsoft share improve this question Using..

Best way to tackle global hotkey processing in c#? [duplicate]

http://stackoverflow.com/questions/81150/best-way-to-tackle-global-hotkey-processing-in-c

bloggablea.wordpress.com 2007 05 01 global hotkeys with net Hotkey hk new Hotkey hk.KeyCode Keys.1 hk.Windows true hk.Pressed..

How can I use Entity Framework on an object graph past a depth of 2 with MySQL Connector / NET?

http://stackoverflow.com/questions/11676513/how-can-i-use-entity-framework-on-an-object-graph-past-a-depth-of-2-with-mysql-c

on an object graph past a depth of 2 with MySQL Connector NET Here is a confirmed bug report with Oracle http bugs.mysql.com.. similar fields defined as a result of the MySQL Connector NET sql provider failing to properly form join statements. Definitions.. which models a database table. I am using C# ASP.NET MVC 3 with the Entity Framework 4.1 and the MySQL Connector..

Asynchronous Programming with Async and Await

http://stackoverflow.com/questions/16074401/asynchronous-programming-with-async-and-await

or missing a reference to an assembly I am targeting the .NET 4.0 framework and am unsure as to any additional assemblies.. ctp share improve this question To use async with NET 4.0 read this article http blogs.msdn.com b lucian archive 2012..

Algorithm to avoid SQL injection on MSSQL Server from C# code?

http://stackoverflow.com/questions/249567/algorithm-to-avoid-sql-injection-on-mssql-server-from-c-sharp-code

the sole guard. Know how validators provided by APIs like NET work. Don't take them for granted. There are ways around them...

Debug Windows Service

http://stackoverflow.com/questions/2629720/debug-windows-service

I try something I get some message about having to use NET START or install the service. EDIT 3 I'm running VS2008. I typed.. 3 I'm running VS2008. I typed this C WINDOWS Microsoft.NET Framework v2.0.50727 InstallUtil.exe C dev Restarter bin Release.. bin Release Restarter.exe I got this Microsoft R .NET Framework Installation utility Version 2.0.50727.3053 Copyright..

Reference a GNU C (POSIX) DLL built in GCC against Cygwin, from C#/NET

http://stackoverflow.com/questions/2710465/reference-a-gnu-c-posix-dll-built-in-gcc-against-cygwin-from-c-net

a GNU C POSIX DLL built in GCC against Cygwin from C# NET Here is what I want I have a huge legacy C C codebase written.. which I posted I have tested. Loading of CygWin DLLs in .NET can have some problem. In http cygwin.com faq faq.programming.html#faq.programming.msvs.. bottom of your stack . This requirement can be wrong in .NET. A stack is a part of thread and not a process. So you can try..

In .NET, which loop runs faster, 'for' or 'foreach'?

http://stackoverflow.com/questions/365615/in-net-which-loop-runs-faster-for-or-foreach

.NET which loop runs faster 'for' or 'foreach' In C# VB.NET .NET.. .NET which loop runs faster 'for' or 'foreach' In C# VB.NET .NET which loop runs faster for or foreach Ever since I read.. which loop runs faster 'for' or 'foreach' In C# VB.NET .NET which loop runs faster for or foreach Ever since I read that..

What is the best way to create a wizard in C# 2.0?

http://stackoverflow.com/questions/38719/what-is-the-best-way-to-create-a-wizard-in-c-sharp-2-0

WinForms control http www.devexpress.com Products NET Controls WinForms Wizard A home grown wizards framework http..

How to use XPath function in a XPathExpression instance programatically?

http://stackoverflow.com/questions/402211/how-to-use-xpath-function-in-a-xpathexpression-instance-programatically

1.0 but only for XPath 2.0 and XQuery . You are using .NET. . NET at this date does not implement XPath 2.0 XSLT 2.0 or.. but only for XPath 2.0 and XQuery . You are using .NET. . NET at this date does not implement XPath 2.0 XSLT 2.0 or XQuery..

How to release the occupied memory

http://stackoverflow.com/questions/5191897/how-to-release-the-occupied-memory

This problem often sawing in the computers on the Local NET not in my computer developer computer which has the SQL server..

How to pass additional postdata into an add record function - JQGrid - MVC . NET

http://stackoverflow.com/questions/5246555/how-to-pass-additional-postdata-into-an-add-record-function-jqgrid-mvc-net

postdata into an add record function JQGrid MVC . NET I am using the JQGrid plugin on an MVC project. I am trying..

Get All IP Addresses on Machine

http://stackoverflow.com/questions/5271724/get-all-ip-addresses-on-machine

addresses attached to the machine that my application C# NET Console app is running on I need to bind a WCF service to the..

Charting in ASP.Net MVC 3

http://stackoverflow.com/questions/6281520/charting-in-asp-net-mvc-3

this article http forums.asp.net t 1620783.aspx 1 ASP NET MVC 3 Beta Chart Helper Styling Please Help a very similar issue..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

credentials at that time. This is typically done using the NET USE command or the Win32 functions that duplicate NET USE ... the NET USE command or the Win32 functions that duplicate NET USE . Access the file with a UNC path as if the remote computer..

How to get csc.exe path?

http://stackoverflow.com/questions/6660512/how-to-get-csc-exe-path

csc.exe path Is there a way to get path for the latest .NET Framework's csc.exe The file usually in c Windows Microsoft.NET.. csc.exe The file usually in c Windows Microsoft.NET Framework vX.X.XXX but the problem is there can be multiple.. found here . You can enumerate installed versions of the .NET Framework from the registry under HKEY_LOCAL_MACHINE SOFTWARE..

Do asynchronous operations in ASP.NET MVC use a thread from ThreadPool on .NET 4

http://stackoverflow.com/questions/8743067/do-asynchronous-operations-in-asp-net-mvc-use-a-thread-from-threadpool-on-net-4

asynchronous operations in ASP.NET MVC use a thread from ThreadPool on .NET 4 After this question.. operations in ASP.NET MVC use a thread from ThreadPool on .NET 4 After this question it makes me comfortable when using async.. it makes me comfortable when using async operations in ASP.NET MVC. So I wrote two blog posts on that My Take on Task based..

What is the point of creating foreign key properties when using Entity Framework Code First?

http://stackoverflow.com/questions/9253234/what-is-the-point-of-creating-foreign-key-properties-when-using-entity-framework

www.codeproject.com Articles 327945 Architecture Guide ASP NET MVC3 Entity Framework C Question So what is the point of having.. key properties didn't exist in Entity Framework version 1 .NET 3.5 and have been introduced with EF version 4 .NET 4 to support.. 1 .NET 3.5 and have been introduced with EF version 4 .NET 4 to support scenarios like the above better. A critical view..

ASP.NET MVC3 RAZOR: Redirecting from Partial Views

http://stackoverflow.com/questions/9413467/asp-net-mvc3-razor-redirecting-from-partial-views

MVC3 RAZOR Redirecting from Partial Views I have two partial.. Redirect to Refer on Partial View Form Post using ASP.NET MVC Why are Redirect Results not allowed in Child Actions in.. view the right way in asp.net.aspx Partial Requests in ASP.NET MVC http blog.stevensanderson.com 2008 10 14 partial requests..

Is there an easy way to check .NET Framework version using C#?

http://stackoverflow.com/questions/951856/is-there-an-easy-way-to-check-net-framework-version-using-c

there an easy way to check .NET Framework version using C# The problem is that I need to know.. Registry.LocalMachine.OpenSubKey @ SOFTWARE Microsoft NET Framework Setup NDP string version_names installed_versions.GetSubKeyNames..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

When attempting to connect to MSSQL database via ASP.NET online I will get the following when two or more people connect.. people think that it would be smart to encapsulate ADO.NET functionality into a DB Class me too 10 years ago . Mostly they.. Connection Pool's territory There's a good reason why ADO.NET internally manages the underlying Connections to the DBMS in..

Unique Folder Identifier

http://stackoverflow.com/questions/10132686/unique-folder-identifier

. That's because one WinOS uses the C winnt Windows Net and another one uses D Windows Net path don't look up those.. the C winnt Windows Net and another one uses D Windows Net path don't look up those I just made them up off the top of..

Treeview flickering?

http://stackoverflow.com/questions/10362988/treeview-flickering

node2 node3 Final node. treeNode new TreeNode Dot Net Perls array treeView1.Nodes.Add treeNode c# winforms treeview..

Stop Debugging Event in C#

http://stackoverflow.com/questions/11023944/stop-debugging-event-in-c-sharp

Close can't be the event. I'm using Visual Studio 2005 Net Framework 2.0 by client requirement but is just for information...

What is the fastest way to load an XML file into MySQL using C#?

http://stackoverflow.com/questions/1456086/what-is-the-fastest-way-to-load-an-xml-file-into-mysql-using-c

running this application. . I'm using MySQL Connector Net so anything in the MySql.Data namespace is acceptable. Thanks..

WCF Service reference not working on other PC

http://stackoverflow.com/questions/16783974/wcf-service-reference-not-working-on-other-pc

PC I have a Windows Store Metro app that connects with a Net TCP WCF Service running on same PC hosted in a console application.. How to enable loopback and troubleshoot network isolation Network communications using an IP loopback address cannot be used.. Store app since this is restricted by network isolation. Network communication using an IP loopback address is allowed within..

MySQL connector 6.7.4 and Entity Framework 5 exceptions

http://stackoverflow.com/questions/18882217/mysql-connector-6-7-4-and-entity-framework-5-exceptions

Framework 5 exceptions I downloaded MySQL Connector Net 6.7.4 and MySQL for Visual Studio 1.0.2 and then followed these.. Failed to find or load the registered .Net Framework Data Provider. Then I added references to the MySql.Data.. Provider invariant MySql.Data.MySqlClient description .Net Framework Data Provider for MySQL type MySql.Data.MySqlClient.MySqlClientFactory..

Setting Objects to Null/Nothing after use in .NET

http://stackoverflow.com/questions/2785/setting-objects-to-null-nothing-after-use-in-net

about the inner workings with Jeffrey Richter on Dot Net Rocks here Jeffrey Richter on the Windows Memory Model and Richters..

PBKDF2 in Bouncy Castle C#

http://stackoverflow.com/questions/3210795/pbkdf2-in-bouncy-castle-c-sharp

BouncyCastle API's. This works perfectly with the Dot Net Compact Framework Windows Mobile . This is the equivalent of.. Rfc2898DeriveBytes class which is not present in the Dot Net Compact Framework 2.0 3.5. Well maybe not the EXACT equivalent..

How do I read incoming mail using C#

http://stackoverflow.com/questions/4614837/how-do-i-read-incoming-mail-using-c-sharp

ImapX http hellowebapps.com products imapx LumiSoft.Net Imap Client http www.lumisoft.ee lswww download downloads Net.. Imap Client http www.lumisoft.ee lswww download downloads Net InterIMAP http interimap.codeplex.com To address the 2nd part..

How do I create a TabControl with no tab headers?

http://stackoverflow.com/questions/4912354/how-do-i-create-a-tabcontrol-with-no-tab-headers

base.WndProc ref m Code sample originally taken from Dot Net Thoughts . Note that this will not work properly for tab headers..

How can I divide two integers to get a double?

http://stackoverflow.com/questions/661028/how-can-i-divide-two-integers-to-get-a-double

MySQL Entity Framework Error - The specified store provider cannot be found in the configuration, or is not valid

http://stackoverflow.com/questions/8705108/mysql-entity-framework-error-the-specified-store-provider-cannot-be-found-in-t

But it only works on PCs that have had the MySQL Connector Net 6.4.4 installed. I tried to use the same assembly with my asp.net.. System.ArgumentException Unable to find the requested .Net Framework Data Provider. It may not be installed. at System.Data.Common.DbProviderFactories.GetFactory.. But it only works on PCs that have had the MySQL Connector Net 6.4.4 installed. Does it mean that you are trying to run your..

Looking for best practice for doing a “Net Use” in C#

http://stackoverflow.com/questions/8919/looking-for-best-practice-for-doing-a-net-use-in-c-sharp

for best practice for doing a &ldquo Net Use&rdquo in C# I'd rather not have to resort to calling the.. .net 1.1 share improve this question Use P Invoke and WNetAddConnection2 There should also be some wrappers out there to..