|
Tridip Bhattacharjee wrote: so please tell me how to prevent win task scheduler to call exe before the setting time if many user connect to that server over the vpn.
This has absolutely nothing to do with C#. Try posting this in the infrastructure[^] forum.
|
|
|
|
|
I AM STUDENT OF BSCS AND MY FINAL PROJECT IS NOW STARTED. MY FINAL PROJECT IS ABOUT ICMP CONTROLLING SYSTEM.PLZ HELP ME ABOUT THIS PROJECT.
TAHNXXXXXXXXXX
|
|
|
|
|
STOP SHOUTING!
All uppercase is considered as shouting on the internet. And rude.
All lowercase is considered childish.
Also, learn to spell. "PLZ" is not a word. You have a keyboard. Find the vowels. Use them.
"TAHNXXXXXXXXXX" is not, has never been, and will never be, a word. It's not even close to a word.
Now. the question:
What question? Are we supposed to hack into your PC and work out what your problem is? Read your mind? Or just guess?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
|
"Bachelor of Science, Computer Studies"?
I are Troll
|
|
|
|
|
HUSSNAIN TOUFIQ wrote: MY FINAL PROJECT IS ABOUT ICMP CONTROLLING
THANK THE LORD. For a moment there I thought that said ICBM[^] Controlling.
|
|
|
|
|
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
HUSSNAIN TOUFIQ wrote: PLZ HELP ME ABOUT THIS PROJECT
No. With a childish behaviour like you show here (shouting, crappy text speak, not being able to ask a proper question) it's maybe better for you, if you don't graduate since you wouldn't stand a chance in working live.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
One of the great joys of the final year project is that it's the place where you really get to shine. It's not just about coding an application, it's all the bits that go with it - the design, thinking about the edge cases, working out the user experience with your software. This is your chance to really show how well you've learned your subjects; that you've listened and taken it all in, and that you are now ready to get to grips with core functionality in an imaginative and enthusiastic manner. You are doing yourself a disservice if you don't take the opportunity to actually deal with this by yourself; by all means ask for help when something gets too much for you, but show us what you can do. Astonish us. Be exceptional.
|
|
|
|
|
Pete O'Hanlon wrote: Astonish us. Be exceptional.
He definitely astonished me with his exceptional first impression of an angry elephant with constipation, shouting down the place and requesting unspecific help in a kind of language, that looks like it has been written by a monkey with rabies. Totally impressive how he seems to think, that anybody might help him that way.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Smithers-Jones wrote: He definitely astonished me with his exceptional first impression of an angry elephant with constipation
5
|
|
|
|
|
Smithers-Jones wrote: an angry elephant with constipation
Smithers-Jones wrote: a monkey with rabies
Is this you subtly suggesting the development of a zoo management system? some merger of a hotel management system and a patient tracking system?
|
|
|
|
|
This has got to be one of the best, most constructive forum replies ever. It's just a shame it's too long for a quote in a signature!
5 from me
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
DaveyM69 wrote: It's just a shame it's too long for a quote in a signature!
You could try to cut down its length by using textspeak
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Thanks Dave. You could always use the "Astonish Us. Be Exceptional" bit if you like.
|
|
|
|
|
Done
|
|
|
|
|
Wow. Is that 3 sig lines I've got going on in there? Thanks very much Dave - that's pretty humbling.
|
|
|
|
|
You keep coming up with these gems - I just steal quote them!
|
|
|
|
|
Oooh look a troll. All wet and slimy under the bridge is it?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello All ,
I have used a CalendarExtender in my page with textboxes. When I press enter key in another textbox, calendar's popup is appearing.
I have used defaultbutton attribute in form tag and tried keeping my button id as defalut button but this is also not working.
Please help me out in same..
Thanks In Advance
|
|
|
|
|
Smells like ASP.Net to me. You will get better responses in that forum.
|
|
|
|
|
Hi guys,
I need to find a way around a problem so that I can have an array containing lists of different types, where those types are all derived from the same class. Unfortunately I'm at the end of my knowledge of covariance etc so any help would be greatly appreciated.
To explain better:
I have a class ('class X') which has several lists in it. The lists contain different types, but these types all derive from the same abstract class. I need to be able to iterate through all items (i.e. across and within the lists) as though all the lists were one. For various reasons, the lists must remain as separate objects. Furthermore, 'Class X' is inherited, and derived classes have additional lists...
My solution was to create an array containing these lists (which makes iterating with an unknown number of lists very easy), but I hit problems very quickly (e.g. see code below). Can anyone show me how to do something like this, or find a more elegant way to do it?
Here's a much smaller, simple example of the kind of thing I'm trying to do:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
abstract class A
{ }
class B : A
{ }
class C : A
{ }
class ClassX
{
static void DoStuff()
{
List<B> listB = new List<B>();
List<C> listC = new List<C>();
List<A>[] arrayOfLists = new List<A>[2];
arrayOfLists[0] = listB;
arrayOfLists[1] = listC;
arrayOfLists[0] = listB.Cast<A>().ToList();
List<List<A>> listOfLists = new List<List<A>>();
listOfLists.Add(listB);
}
}
}
Thanks!
Lee
|
|
|
|
|
The List(T) class is neither covariant nor contravariant.
Here is why:
If you have a list of class A, you can't cast it to a list of class B (derived from A), because not all instances of class A are also instances of class B. This is obvious.
Now the other way: why is it impossible to cast a list of clas B (derived from A) to a list of class A? Because then you could add an item of class C (derived from A) to the list, although it is actually a list of B.
If you only need to iterate throught all the items (thus the full list can be read-only), then you can create a custom iteration logic by implementing the IEnumerable(T) and IEnumerator(T) interfaces, that's probably what I would do... Instead of adding a new List(A) to the class, create a method that returns IEnumerable(A) and implement the iteration logic.
|
|
|
|
|
Hey Kubajzz, thanks for your reply.
I understand what you've said. Problem is that kind of jump-to-the-next-list iteration logic makes the whole thing very messy when the List<B>, List<C>, etc lists are not in some sort of collection (i.e. where it is obvious as to which list to jump to without needing special programming).
It also raises the problem that every class that subsequently derives from 'ClassX' requires a decent amount of overriding/patching if they add new lists (e.g. List<D>, List<E>). My project has several deriving classes, and values being entirely 'readonly' defeats the purpose of the whole class
Is there not an easy way to collect these lists together in some sort of collection?
Thanks heaps for your time
<div class="modified">modified on Monday, September 6, 2010 6:52 AM</div>
|
|
|
|
|
Lee Reid wrote: My project has several deriving classes, and values being entirely 'readonly' defeats the purpose of the whole class
I thought you only needed the complete list for iterating through all lists, thus a read-only iterator (such as IEnumerator) could be enough.
IEnumerable(T) can be implemented in a very clean way without the need of any "special programming".
See the following example:
class A {}
class B : A {}
class C : A {}
class MyClass {
private List<B> listB;
private List<C> listC;
public MyClass() {
}
public IEnumerable<A> GetAllItems() {
IEnumerable<A> b = listB;
IEnumerable<A> c = listC;
return b.Concat(c);
}
}
Yes, it is this simple. Note that the GetAllItems method could easily be 1-line long. You can implement some logic to get all the lists in the current class as an array of IEnumerable<A> for easy overriding, it's not more than 1 or 2 very short methods... I don't think this is messy, nor does it require any "special programming" and I highly doubt there is easier and simpler solution.
The one and only question is: does IEnumerable provide enough functionality for your application?
|
|
|
|