Questions about Making reflection fly and exploring delegates...
If I need to create delegates Func<T, TResult> to methods on dynamically loaded types I could potentially use (1) Delegate.CreateDelegate (2) DynamicMethod (3) Expression trees.
Lets say the set of dynamically loaded types/methods are reflected once at application startup...
Hi
I am generating editable data grids from tables using dynamic data, however, i am unable to set the width of the tables/grids.
Can someone please point me to an article/ or suggest how i can do this?
Thanks in advance.
Regards.
Kulu.
...
I've just run NGen on an .exe assembly, to install, and it says all is up to date, but there is no Native Assembly folder in the GAC, nor is there any Native Assembly service. What's up?
...
I'm currently migrating a big solution (~70 projects) from VS 2005 + .NET 2.0 to VS 2008 + .NET 3.5. Currently I have VS 2008 + .NET 2.0.
The problem is that I need to move projects one by one to new .NET framework ensuring that no .NET 2.0 project references .NET 3.5 project. Is there any tool that would give me a nice graph of project...
I have an MVC app which is pretty simple so far but I want to add a driving directions page to the clients location. I see plenty of examples using the traditional code behind model but none with MVC. The app uses master pages and content pages. I'm pretty new to MVC so bear with me. Any exaples of doing this would be much appreciated.
...
I want to cache a DataGridView row between 'refreshes' i.e. between a Rows.Clear() and a Columns.Clear(). However it seems that calling the Clear() methods does not unbind the data from the DataGridView instance, An example,
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
...
Allegedly, the native code is shared for instantiated generic types when it is instantiated with a reference type, but not for value types.
Why is that? would someone explain the in-depth details?
To make more concrete:
class MyGenericType{
}
MyGenericType<string> and MyGenericType<Shape>
will have only one code generated, wherea...
What are most important things you know about generics: hidden features, common mistakes, best and most useful practices, tips...
I am starting to implement most of my library/API using generics and would like to collect most common patterns, tips, etc., found in practice.
Let me formalize the question: What is the most important thing...
Would someone explain the differences between these two beasts and how to use them. AFAIK, many pre.2.0 classes were implemented without generic types, thus causing latter version to implement both flavors of interfaces. Is the the only case why one would need to use them?
Can you also explain in depth how to use them.?
Thanks
...
var xmlDoc = new XmlDocument();
xmlDoc.Load("XMLFile1.xml");
XmlNamespaceManager manager = new XmlNamespaceManager(xmlDoc.NameTable);
manager.AddNamespace("frbny", "urn:toto");
var curs = xmlDoc.SelectNodes("/frbny:DataSet/frbny:Series/frbny:Key/frbny:CURR");
var values = xmlDoc.SelectNodes("/frbny:DataSet/frbny:Series/frbny:Obs/frbny:OB...
I just getting started using IMetaDataEmit to write some .NET IL. I'm having trouble getting the mdTypeRef for a System.Byte (which I would like to use to declare a byte array on the stack). Here is my attempt.
metaDataEmit->DefineTypeRefByName(NULL, L"System.Byte", &byteToken);
This throws an error message that says "Could not load...
I'm writing a command-line tool which requires privileges elevating. This can be successfully implemented using manifest.
But if this tools is launched from cmd.exe or Far Manager (far.exe), a new console window is created. So all tool console output is written to it and is lost on close.
So my idea is about implementing a fork, where ...
Can you please point me to open source or a reasonably priced comercial product capable of generating PDF from HTML?
...
The line that appears when we set the mask of a masked text box in winforms for c# does not seem attractive at all to me .I want to know if there is any way i can set the mask of
the masked text box and that line is not shown???
...
Hi
I have installed an application that uses .net framework 3.5
after setup I can't find the exe file, when select properties it says it's a reference
How can I find it?
...
I have a business object that implements a collection of PropertyObjects.
BusinessObject
SomeCollection
Property1Object (Name=Height)
Property2Object (Name=Width)
Currently, I am setting the DataContext of UserControl to be the BusinessObject. I've found that I CAN reference into the collection in the binding with s...
Never asked a question here before, I'll try to lay this out as succinctly as possible.
I've got a Recipe class, that contains lists of three different types of Ingredient Uses. These classes all inherit from the base, IngredientUse. So the mapping looks like this:
<class name="IngredientUse" table="IngredientUses">
<id name=...
This error comes up when I submit a page to load up a .net chart control. I have the http handler in my web.config below. FOr whateve reason it doesnt seem to work.
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions...
I've learned the essentials of C++ and would like to learn Visual C++ (VC++)
I want to be master in native , MFC and .NET for Windows programming. I already bought a book on VC++ by Ivor Horton. But the language seems hard to understand.
Does anyone have any better book recommendations?
...
So after scouring the Internet I pieced together the following code to upload a photo for a Google Contact:
System.Drawing.Bitmap Image = new Bitmap( @"C:\test.jpg" );
System.IO.MemoryStream Memory = new MemoryStream();
Image.Save( Memory, System.Drawing.Imaging.ImageFormat.Jpeg );
Service.Update
(
Contact.PhotoEditUri,
...