|
|
Browse by Tags
All Tags » c# » .NET 2.0
Showing page 1 of 2 (12 total posts)
-
I’ve been wanting to know this for years, and finally discovered it the other day when looking inside the Microsoft Composite Application Blocks class in Microsoft.Practices.CompositeUI.BuilderStrategies.CommandStrategy.
There’s some code in this class to discover if an event handler has already been attached to the event, and it goes a little ...
-
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.IO;
namespace DataSetSerializer
{
class Program
{
static void Main(string[] args)
...
-
See here http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx
-
A colleague of mine this week showed me his code coverage as being over 94% for his production code, which impressed me so much, it spurred me on to ensure that all code paths in my code from now on go blue instead of red when testing with Team coverage, using the Test driven .NET addin for visual studio 2008. Not sure what I'm on about, then ...
-
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /DesignMode /u /ShowCallStack /Configuration="C:\Data\Merrick\Projects\Data Access Guidance Package\Data Access Guidance Package\Data Access Guidance Package\bin\Debug\\Data Access Guidance Package.xml" "C:\Data\Merrick\Projects\Data Access Guidance Package\Data Access ...
-
Symptom
Aspnet_compiler.exe fails to produce any content apart from the PreCompiledApp.config and the Bin folder.
Reason
When you save a solution containing a web project (file based), it sets the physical path property Debug.AspNetCompiler.PhysicalPath for the aspnet_compiler. If you then subsequently save your ...
-
24/01/2012 - Have added an update at the bottom of this article today, as it turns out that for Simple Enumerations this is not required by the DataContractSerializer. In order to pass Enum values around to your WCF service operations, then you must put [ServiceKnownType(typeof(Enum))] attribute on the service interface contract, and also add ...
-
In Visual Studio, you can use the find and replace utitlity in regular expression mode, with the expressions below to turn code such as this... [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
public ...
-
The following code will get the correct database and server name for the Team Foundation Server Work Item Tracking database. Note in the call to GetRegistrationEntries you can use any one of the following ...
-
Looks like if you create area paths in code, then you can’t access them straight away from the item.Project.AreaRootNodes property, but have to go back up to the Store for the item, and look at its Projects collection…workItem.Project.AreaRootNodes.Count0workItem.Store.Projects[item.Project.Name].AreaRootNodes.Count2Even though these ...
1
|
|
|