blah blah blah is here! blah blah » Close

0
votes
1 answers

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 ...

0
votes
0 answers

validating listview data against xml schema

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,

0
votes
0 answers

can someone please explain me a bridge pattern?

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 ...

0
votes
0 answers

why and when to use sealed class in c#

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 ...

0
votes
1 answers

Linq query for getting latest single value on the basis of latest date in a collection

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; ...

0
votes
2 answers

Converting .xls file to .csv format and storing it into sql server nVarchar column

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 ...

0
votes
1 answers

what is thread affinity ?

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

0
votes
2 answers

Can someone give me a practical example of Association, aggregation and composition

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,

0
votes
6 answers

threading with a timer for each thread

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 ...

0
votes
2 answers

passing an object(linq) to a thread

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 ...

0
votes
2 answers

need an approch for my problem definition. Please kindly take sometime to read the problem

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 ...

0
votes
1 answers

copying files from one server to another server withing same domain (best approach)

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. ...

0
votes
2 answers

What is the best way to catch an exception in C# application

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 ...

0
votes
0 answers

Not able to copy .dll & .aspx to droplocation on TFS build

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& ...

0
votes
1 answers

Please help, problem in installing .net 1.1

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 ...

Feedback