Load InfoPath Forms with Managed Code from Sharepoint
When loading an InfoPath form from a Sharepoint document library, you may be presented with a policy error message indicating that (Internet) forms with managed code cannot be loaded. This can be a...
View ArticleSerialisation in C# 3.0
This is a great article demonstrating Serialisation in C# 3.0 including the DataContractSerializer. O’Reilly C# 3.0 in a Nutshell
View ArticleShowing an Assemblies Fully Qualified Name
To show the fully qualified name of an assembly you can use Lutz Roeders Reflector, or you can write a simple console application to do the same thing.
View ArticleDebugging .NET Serialization Code
Just what is your XmlSerializer doing? You can find out by debugging the serialization code which is generated automatically at runtime; 1. Modify your .config file to include the following snippet 2....
View Article.NET (C#) Impersonation with Network Credentials
I required a C# class to enable ad-hoc user account impersonation for accessing resources both on the local machine and also on network machines, which I’ve reproduced here. Of note, if you require...
View ArticleC#: Determine if a Method is Overridden in a Derived Class
The other day I was doing some work in which I needed to be able to determine from a base class whether a particular method had been overridden in a derived class, and once again reflection comes to...
View ArticleC#: Interruptable Background Processing Service
Working on a prototype this week I needed a console app to create and start a periodic background processing activity, then sit waiting while the background processing activity executed every X...
View ArticleC#: Implementing Generic Method of Generic Interface Causes Runtime Exception
You have an interface declaration which includes a method signature that has a generic parameter and generic constraints. Such an interface can be seen below; And you also have a implementation class,...
View Article.NET: Customizing XML Object Serialization
Serializing C# objects using the .NET framework is a simple task, as is shaping the XML which results from serializing a C# object in terms of XML elements, attributes and namespaces. However, whats...
View Article
More Pages to Explore .....