votes
why we override ToString()
Hi, I have seen in couple of places the code where ToString() method has been overriden. Like : class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public i ...
blah blah blah is here! blah blah » Close
Hi, I have seen in couple of places the code where ToString() method has been overriden. Like : class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public i ...
Hi, Can someone tell me, is it posible to validate listview data against an xml schema when user edits listview column data in c# win forms applications. Thanks. Regards,
Hi All, I was going through design patterns and got to know a little about adaptor and factory design pattern. But am not able to understand bridge pattern. The definition is fine which says "The Bridge Pattern could help us to ...
Hi All, I want to know when to use sealed class. I am working in a project where database related classes are sealed. Now I know that since these classes are sealed we cannot inherit. But what is the benifit of making database related cl ...
Hi, I have a collection where the IDs are same. Now I need to select just one value of that collection based on the latest date. my collection and code looks like this: public class Orders { public int ID { get; set; ...
Hi, As per my requirement, i have a .xls file which I have to convert it to csv format and store it in existing nVarchar column of Sql server DB. Is it posible ? Or else I am already passing the byte[] of .xls file through my serv ...
Hi All, Can someone please explain me what is thread affinity ? I was going through some concept of WPF and came to know that thread affinity deals with concurrency in WPF. Thank You. Regards, Suraj
Hi, Can you give some practical example of association, aggregation and composition which will make this understandable. A code sample wud be really helpfull. regards,
Hi, I have to do multithreading. In my case each thread should run in a specified timer interval given in a database. I tried a sample by storing the data in an xml file and reading them with linq to xml. But it seems all the thread take ...
hi, I have a linq query which fetches a collection of datas. I want to do some functionality with each collection of data. I am not getting how to pass var object to a thread. My linq to xml query looks like this: XDocument readStorel ...
Hello , I need an approach for my new assignment.Thought a lot but could'nt find an approach so posting it in this site hoping that someone might have come accross this situation and can suggest me something :-) I have a console appl ...
Hello all, I have to copy files from one server to another within the same domain. Can some suggest me the best approch. Currently I am planning to go with HttpWebRequest class to download files but I found it to be little slow. ...
Hello all, I am working on a simple c# application which is in 3.5 and basically deals with LINQ and linq to sql. I want to write a common code for handling exceptions. I have not written anything like that before. Is it the right ...
Hi All, We are trying build asp.net 1.1 application from TFS. We are using something like this in TFSBuild.proj file: <ItemGroup> <VS2003_OutputFiles Include="$(SolutionRoot)\bin\**\*.*"/> </ItemGroup& ...
Hello all, I have set up .net 3.5 in the TFS build server. Now I have few applications in .NET 1.1 which has to be builded in TFS server. I tried installing .net 1.1 in the server but giving a compatibility error. Can we install lowe ...