Generic List class property
Tue, 7 Oct 2008 06:49:23 -0700 (PDT)
I want to define a class like this
[DataContract]
class MyClass
{
[DataMember]
List<T> MyList<T> where T : IMyList {get; set;}
}
or something like this. I don't want to put <T> on my class definition
because it is only after the instance has been created that I will
know exactly which type of obje ...
|
Re: Mediator class design pattern (two different ways)
Tue, 7 Oct 2008 06:46:32 -0700 (PDT)
On Oct 6, 2:00 pm, Jeff Louie <anonym...@devdex.com> wrote:
> How about:
> Regards,
> Jeff
>
Thanks, but I don't see it. This looks more like a standard "events"
model, where one object can notify other objects that an event has
occurred (" // fire event to all registered listeners of change in
model s ...
|
Why MailMessage.Headers.Add("someKey", "someValue") lower cases the
key?
Tue, 7 Oct 2008 05:51:34 -0700 (PDT)
Whenever I add a key to Headers it turns to a lower cased one while
Headers is of type NameValueCollection and NameValueCollection itslef
does not apply any lower or upper case change. Please consider
following code:
MailMessage mail = new MailMessage();
mail.Headers.Add("X-ECE_SEND", ...
|
The sale of world famous jacket,Jean-COOGI/DG/gino green global
/G-Star and so on
Tue, 7 Oct 2008 05:38:49 -0700 (PDT)
The sale of world famous jacket,Jean-COOGI/DG/gino green global /G-
Star and so on
Nike Air Jordan 1 I Force 1 Jordan Fusion AJF 1 AJF1 AJ1F
Jordan 1 fusion www.wholejean.cn
Nike Air Jordan 2 II Force 1 Jordan Fusion AJF 2 AJF2 AJ2F
Jordan 2 fusion
Nike Air Jordan 3 III Force 1 Jordan Fusion AJF 3 AJF3 AJ3 ...
|
Sorting generic multi-dimensional array
Tue, 7 Oct 2008 05:22:48 -0700 (PDT)
Hi all,
I have scoured the internet for articles on sorting multi-dimensional
arrays of generic types e.g. T[][] using the IComparer<T> interface
and have run into a real roadblack. There does not seem to be an easy
way to do this. I have found implementations that use the non-generic
IComparer interface bu ...
|
object vs transactional programming
Tue, 7 Oct 2008 04:35:41 -0700 (PDT)
Hi all,
I have a question. Maybe it has been answered a zillion times, but I
don't seem to find the answer.
It's not so much a practical question, although it has practical
implications.
As we all know, C# is an OOP, i.e. we are supposed to treat entities
as objects (e.g. in the application I'm writing right ...
|
How to find Geographic location thru IP address
Tue, 07 Oct 2008 02:59:02 -0700
Hi,
I have IP Addresses in my DB table. I want to find the geographic location of each IP address. Can anyone help me if there is any API or solution for this.
Thanks in advance. ...
|
|
|
Thread.Start
Tue, 7 Oct 2008 02:33:00 -0700
If I call Thread.Start am I guaranteed that thread will be running before the
call from Thread.Start returns?
i.e.
//Doing Something on main thread
Thread.Start(NewThreadWork);
Subscription.Create //This relies on the New Thread running
Thanks ...
|
Arrays
Tue, 7 Oct 2008 01:07:03 -0700
How do I initialise an string array of rank 2 whose first dimension is
unknown at the time of initialisation? I know the second dimension is 3.
I have tried several variations in code and I end up with either an array
whose dimensions are fixed or with the error 'Use of unassigned local
variable ..'
Thanks ...
|
Communicate with linux server from .net application
Mon, 06 Oct 2008 22:47:21 -0700
Hi,
How can we communicate with linux server from .net application? I need to upload/download files to linux server using .net desktop/web application preferably using sftp.
-Thanks,
Priya. ...
|