Sort Generic List
I am wanting to sort a Generic List in Ascending Date order. (Framework v2) Any suggestions? Thanks ...
I am wanting to sort a Generic List in Ascending Date order. (Framework v2) Any suggestions? Thanks ...
I frequently expose typed collections and lists. Often when exposing collections and lists I am not happy with the Add and Remove methods being public. In older versions of .Net I have implemented IEnumerable but this is a lot of work. What are the better alternatives? I have seen questions similar to this, but not specifically about t...
Hi, I am using C# language. I am facing one problem, please see the details below: I have a parent page with address (http://www.espireinfo.com/coursefinder/findaprice.aspx?SchoolCode=LOL&ProgCode=ENGBUS&School=London%20Leicester%20square&Programme=English%20for%20Business) which have a button, which on click put some va...
I'm trying to create a nUnit test to do the following: 1) Load the DLL to test. 2) Iterate among the various types. 3) Find the ones that have a certain custom attribute. 4) Instantiate these types and make sure that all their public properties aren't null. Here's what I wrote so far: Assembly assembly = Assembly.LoadFile("MyLib.dll...
Only the ConvertTo method gets called(a lot of times) when accessing the propertygrid. This correctly returns the "Foo!" string in the propertygrid. When I click to edit I get an exception Cannot convert object of type Foo to type System.String.(not exactly, translated). The ConvertFrom method doesn't get called, any clues why? And the e...
Please explain what are the main differences and when should I use what. The focus on web multi-threaded applications. ...
Hi all. This is my code: using System.Windows.Forms; Type type = typeof(Form); Type type2 = Type.GetType(type.FullName); As a result: type2==null What I am doing wrong? ...
Hello, I'd like to have a script that stops a certain windows service,build or rebuild a solution and runs the service after the build process finished. Should I use Msbuild for this ? Or is there any other way ? ...
I have a WCF client proxy which reads from a SOAP web service. I do not control the service, only the client proxy. The result of invoking one of the operations of the service is defined as a very large XML schema, of which only a small subset is relevant in my application. I have created a custom WCF behavior which allows me to parse t...
Yesterday I took part in a discussion on SO devoted to OutOfMemoryException and the pros and cons of handling it (http://stackoverflow.com/questions/2110436/c-try-catch/2110512#2110512). My pros for handling it were: The fact that OutOfMemoryException was thrown doesn't generally mean that the state of a program was corrupted; Accordi...
I am developing server application that would implement z39.50. The platform I am using is C#.net. Now I have successfully made a client using the zoom.net which in turn is build over YAZ. Now my question is that can I make z39.50 server using zoom.net or is there any other utility or tool available for it. Point to note is that it shoul...
Does anyone know of any .NET genetic algorithm frameworks for evolving instructions sets in virtual machines to solve abstract problems? I would be particularly interested in a framework which allows virtual machines to self propagate within a pool and evolve against a fitness function determined by a data set with "good" outputs given e...
I'm curious to know if anyone knows of any other .Net implementations of the .Net framework (any version) other than ones by Microsoft an the Mono project. I remember reading about a version that was in Java (.Net 1.0 at the time), but I can remember what it was called now. Interesting idea though. I have also read in a magazine that M...
Suppose I have a resource located in ~/Resources/R1.png This resource's relative URL will vary depending on the current address. For instance: If I'm at www.foo.com/A/B/C/D.aspx and the www.foo.com/A is the root path including Virtual Directory, then the path relative to the current address of ~/Resources/R1.png is ../../../Resources/R1...
Hi, I am using C#. Below is my sample code. private void Page_Load(object sender, System.EventArgs e) { string str = Request.UrlReferrer.ToString(); Label1.Text = str; } The result in Label1.Text is http://localhost:82/data/WebForm1.aspx. Now I want the result "WebForm1.aspx" in Label1.Text can you please help me? Tha...
how to get MyGeneration.dOOdads.dll Actually I produced code from Mygeneration utility and it requires this dll file. I find on many places but failed. ...
I'm just getting into .Net development and having come from a Java background I'm looking for documentation laid out in a similar fashion to Sun's Java API docs. A clean, simple interface with all the constructors and methods (and their parameters!) and properties for a class laid out on one page. No examples - a summary at the top, a...
Hello all I have a vb.net solution and I want to add there a new dll files written in c# and use the functionality from the dll, in the code written in vb.net. I made several uses of it and it seems working all right, but is it a smart thing to do messing vb.net code with c# like I want to do . And what a dangers of what I am doing ?...
I have VB6 application that uses Navigate2 method of WebBrowser control. .Net version of WebBrowser have 8 versions of Navigate method. Which method is mapping functionality of Navigate2 of the code below: Dim url url = "www.apple.com" WB.Navigate2 url ...
Question Heading seems to be little confusing, But I will Try to clear my question here. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public abstract class Employee { private string name; private int empid; BenefitPackage _BenefitPa...