Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ThankGodItsFriday

    Create an object of unknown type???

    I have a number of classes that inherits from a baseclass. The normal way to populate the object is to send it a DataRow containing the information needed. But now I need a function that returns an ArrayList of objects that are derived from the baseclass. The function is not, nor can it be, in...
  2. ThankGodItsFriday

    Using reflection to emulate a pointer in managed code

    The problem I'd like to solve is to map a value type to a value in a hashtable in managed code. public class testbase { protected HashTable ht = new HashTable(); } public class test : testbase { string _aString; int _aInt; public test() { ht["aString"] = _aString...
  3. ThankGodItsFriday

    Abstract Static Functions

    Declaring a member function as abstract static generates a compile error, "A static member cannot be marked as override, virtual, or abstract". Why is it a bad thing to declare a function like this?
  4. ThankGodItsFriday

    Changing class-template in VS

    I'd like to change the template for creating a new class so that it contains a few #regions directives. Does anybody know how I can do that?
  5. ThankGodItsFriday

    Serialize this

    Hi! I'd like to serialize an object from within itself. public class person { public int id = 5; public ArrayList phoneNumbers; ... public void Serialize (string filename) { //Code to serialize current object } } the code XmlSerializer serializer = new...
  6. ThankGodItsFriday

    Schedule function calls?

    I have an arraylist of objects where I need to run an execution function for each diffrent object at a diffrent time. Sofar I've been leaning towards solving it with a timer that iterates through the objects and checks if System.DateTime.Now() > obj.ExecutionDate It feels however like sloppy...

Part and Inventory Search

Back
Top