How compatible is C# 3.0 code with .NET 4.0
My C# books are for 3.0, but I'd like to install 4.0 if it won't make any difference with the code. Will it be compatible? ...
My C# books are for 3.0, but I'd like to install 4.0 if it won't make any difference with the code. Will it be compatible? ...
Like, if I write a program on windows using C# and the .NET framework, then drop the code on a Linux machine running mono, will it run exactly the same? Or would I have to rewrite it to work with Mono's libraries? ...
Hello, I have an AutoMapper issue that has been driving me crazy for way too long now. A similar question was also posted on the AutoMapper user site but has not gotten much love. The summary is that I have a container class that holds a Dictionary of components. The components are a derived object of a common base class. I also have a...
I am using Mike Bluestein's article, http://mikebluestein.wordpress.com/2009/09/27/using-monotouch-with-the-net-library-for-the-google-data-api/, to build an application that communicates with the google APIs. When I try to add references to my project, the imported projects say "incompatible target framework: v2.0". I can change versi...
I'm trying to create an image with some text on it and I want the image's size to match the size of the rendered text. When I use System.Windows.Forms.TextRenderer.MeasureText(...) to measure the text, I get dimensions that include font padding. When the text is rendered, it seems to use the same padding. Is there any way to determin...
The ways I can think of are: Use Windows Identity Foundation (WIF). I have never done this so is a black box and risky. Use Forms Authentication or similar, then use database replication to make sure each application has access to the data store. No doubt there are other options. More info: This is for an internet solution, not intr...
hi guys, I have an ASP.NET 3.5 application using Windows Authentication and implementing our own RoleProvider. Problem is we want to restrict access to a set of pages to a few thousand users and rathern than inputing all of those one by one we found out they belong to an AD group. The answer is simple if the common group we are checki...
In my Windows Designer host implementation, The top Control's Control.Controls does have all the child controls but for Child control's Control.Parent is set to {System.Windows.Forms.Design.DesignerFrame+OverlayControl} Edit: This is happening in ComponentAdded Event of IComponentChangeService. Am I doing something wrong? H...
I have created a "Manager" class that contains a limited set of resources. The resources are stored in the "Manager" as a Queue. I initialize the Queue and a Semaphore to the same size, using the semaphore to block a thread if there are no resources available. I have multiple threads calling into this class to request a resource. Her...
I noticed that after I use AssemblyDelaySignAttribute to indicate that an assembly is in development and does not need to be signed now, I'll have to use sn -Vr foolib.dll to register for strong name verification to be turned off for this assembly. What's the point of doing this circle? Why not just leave the assembly unsigned until it...
I have simple WinForms application where modifying Windows Registry. The problem is that in Vista / Windows 7 I need to force user to switch to administrator. I do not want to force user to Run as Administrator form start of the application. I want him to do it when there is necessity to write to registry. Best case scenario would be ...
Hello. Does anyone know what error message will be displayed when someone tries to run an application developed using .NET on a computer where .NET Framework is not installed? ex) Windows XP original. will the error message tell you that .NET Framework is not installed? or will it not show any useful messages? ...
I am aware of the Amazon.com exposed URIs ... which I need to sign up for and then on I can utilize them ....... roll-up my sleeves ..... and get some WCF Client test-drive coding. What are the other such publicly exposed end points that reflect real or almost real-time services? Any offerings specifically from Microsoft? I am bas...
Assume you are taking over a legacy .NET app. [pre - 3.0] written in C# What are the top 5 diagnostic measures, profiling or otherwise that you would employ to assess the health of the application? I am not just looking at the "WHAT" part of diagnosis but also at the "HOW". For e.g. It is indeed necessary to assess fast/optimum respons...
There is plenty of documentation on MSDN and elsewhere explaining how to create a publisher policy assembly. All of these examples use the command line tools (al.exe) to generate the policy assembly and GACUtil.exe to install the policy assembly into the GAC. OK, as far as it goes. For various reasons, I'd like to be able to replicate t...
hello, I am new to asp.net Can you please guide me what is session and session variables ? Please I don't need a comparision of asp session and asp.net session because I don't know anything about asp. I have saw many articles on types of session as well. But still I can't understand correctly what is session and what are session vari...
I would like to know if there is a website where I could download the Apache POI ported for .net? I already found this link in the web http://www.apache.org/~avik/dist/poi-2.5.1-dev-20040708.dll I also found a repository of poi.net from novel but it is quite old (2004) http://developer.novell.com/wiki/index.php/Poi.Net But the version...
I am Developing Windows Form Application in .Net, I want to insert selected rows value of Gridview into database. First Column of my GridView is Checkbox, when user check one or more checkbox from gridview, i want to insert values of respective rows into Database. In Web application i done this using DataKeyNames property of GridView. W...
hello , can I use .net framework 4.0 in VS2008 ? If yes how can I do that? My application uses 2.0 ,Or are there advantages to updating to the latest .NET 4.0 now? And also I came across some new features in framework 4.0 like : Response.RiderectPermanent Response.RiderectToRoute Response.RiderectToRoutePermanent ...
Hi, I'm using a BindingSource as data source for a DataGridView. The user can filter entries. Internally I use the BindingSource.Filter property of course. All works well. Then I get input from a scanner and need to select the first entry in the list that matches the scanned barcode. Whether filtered or not, the displayed list may con...