.net

what are wss and moss libraries available in .net framework

In .net framework. what are libraries available for working in sharepoint and their uses Thanks in advance ...

Copy assembly dependencies from lib folder that uses SVN

Hi All, I have been investigating the best way to store our solutions in SVN and came up with a structure of: Libraries EntLib DLLs Global DLLs SubSonic DLLs Source sln Project 1 Project 2 Libraries uses svn:externals to pull down the correct version of the assemblies. My issue is...

Is there a built in Binary Search Tree in .NET 4.0?

Is there a built in binary search tree in .NET 4.0, or do I need to build this abstract data type from scratch? ...

System.Type.Missing or System.Reflection.Missing.Value when working with Office PIA?

I searched these SO results and couldn't find anything related to my question. I doubt this could be a duplicate. I'm currently writing a Microsoft.Office.Interop.Excel PIA wrapper in .NET C# 3.5 and was wondering about what is best to use while calling methods like opening a given workbook. System.Type.Missing or Missing.Value? I hav...

win forms move events

Hello! My problem is the following: i have a state machine inside an app and i need to be able to pause the current states's ProcessInput function as long as the user moves the form along the screen. I have a property called "Paused" on the state which does that and i override the OnMove event of the form so that the property is set t...

Which methods to close a compiled query

As we know you can't add an extra clause like .Where() or .First() to a compiled query, because that changes the query and forces a recompile. What I would like to know is which methods can be used to "close" a compiled query. I know most people use either .AsEnumerable() or .ToList(), but which other methods work as well? Can I use .A...

Does .Net / Visual Studio support foreign language keywords for non English speaking cultures?

I was wondering whether the majority of non English speaking cultures, especially in Europe, tend to develop their .Net code in their native language or in English? My personal assumption is that there would be a tendency to keep the code in English in order to ensure maintenance is possible across teams operating in different cultures...

System.Runtime.Remoting.Channels.CoreChannel.GetMachineIP() from .NET Reflector - please explain

Using .Net Reflector on System.Runtime.Remoting.Channels.CoreChannel I decompiled the 2 methods below. GetMachineIp() is called when setting up an HttpChannel for remoting. internal static string GetMachineIp() { if (s_MachineIp == null) { IPHostEntry hostEntry = Dns.GetHostEntry(GetMachineName()); AddressFam...

.Net and RelaxNG Schemas

Hello, a few weeks ago I started to use xsd.exe for create classes for serialization/deserialization xml files based on the xsd schema. Currently I am finding util like xsd.exe for create classes from RelaxNG Schemas. Can you help me to find it ? ...

What is the difference between Page.Master and Master object that comes via MasterType directive.

What is the difference between the these two masters ? <MasterType VirtualPath="PathToMaster"/> Master.FunctionName(); and Page.Master; I have noticed that from the first, we can call the functions on the master page and from the second we can not. ...

NotSupportedException at unboxing SQLite Int64 field with Entity Framework 4

Querying with Entity Framework 4 with a SQLite (v3) database through the sqlite.phxsoftware.com ADO.NET provider (v1.0.66.0), I'm facing the following NotSupportedException while casting the retrieved Int64 properties: Unable to cast the type 'System.Int64' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Mode...

"Update" functionality in C# program

I am creating a Windows form application in C# which gets a set of links from a remote Sql Server db and adds the links to a local text file. Now what I want to do is create an auto-update functionality so that every time a new link is added to the remote db, the app automatically picks it up and adds it to the text file or atleast alert...

Export to excel in .net

I have following code for export to excel in ReportByApp.aspx page containing crystal report crReportbyApp.rpt Dim outstream As System.IO.MemoryStream Dim strFileName As String strFileName = "Report_" & Now.ToString("MM-dd-yy") & " " & Now.Hour.ToString & Now.Minute.ToString & Now.Second.ToString & N...

Is there a good source that gives an overview of linq optimizations?

Linq does a lot of clever things such as returning the result of the Count-property using the Count() method on a IList. Is there a good source that gives an overview of this optimizations? It would be very interesting because as before I knew the above, I never used Count() and thus often returned a List<T> than only an IEnumerable<T> ...

How can I set up dynamic imports when hosting IronPython?

I'm writing a C# client application which is intended to have strong support for customisation via scripting, and I have chosen IronPython as my target scripting language. I would like to keep the user's code in the application's database with the rest of its state, but I need the user to be able to split their scripts into files and mod...

My control is awfully slow. Anybody know an EASY-to-USE, FREE profiler for c# development?

Possible Duplicate: Any Good Free .NET Profiler? I am currently developping a control that is supposed to draw a heatmap in realtime at about 20Hz. This consumes an awful lot of CPU resources and I would like to know which function calls are slowing it down that much, sine I got the impression that I am already using a fairly ...

Is it possible to read serial number from a harddisk in c#?

Possible Duplicate: How can I find the Harddisk Device Serial Number without using the WMI in .NET? how to read the serial number from a harddisk in c#? Any suggestion... EDIT: I want harddisk serial no and not for each partitions... ...

c# check VAT for local company

Hi I am trying to use http://ec.europa.eu/taxation_customs/vies/vieshome.do?selectedLanguage=EN in c# to check if it's ok [ClassInterface(ClassInterfaceType.AutoDual)] [ProgId("DotNetCOM.VerificareCIF")] public class VerificareCIF { public string tara = "RO"; public bool valid = false; public DateTime data; public Strin...

How binding of Silverlight UI to .NET Classes works

I am looking at binding a certain silverlight UI to a C# class. In the example code below there are two textboxes in the XAML page. Any changes made to one textbox is reflected in the other the minute it loses focus and vice-versa. While the example I have works as I want it to, I have no clue as to what is goin on under the hood and how...

Control.Parent = null

I have my own control derived from Windows.Forms.Control and I am checking the Parent.BackColor inside the overrided of OnHandleCreated() method. At desing-time the Parent property first returns null, then - after form is completely loaded - returns the real parent window: the form itself. We need to draw part of the custom control with...