Jump to content
Xtreme .Net Talk

Asmod

Members
  • Posts

    2
  • Joined

  • Last visited

Personal Information

  • .NET Preferred Language
    C#

Asmod's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Only wanted to inherit a thread so I could create thread specific variables and procedures. If I have a program that reads data from a huge array I'd like to pass off jobs to a thread along with an 'id' number which would reference part of the array and maybe some other information too. Its the passing variables/parameters to a thread that I can't work out. I thought maybe you'd have to create your own class and inherit a thread but that appears impossible so there must be some way to pass this info over! Thanks
  2. Just started playing with C# after many years of Delphi coding. One question I have is to do with Class inheritance. In Delphi you could do things like this TMyClass = Class(TThread) .... Public FVariable : string; End; MyClass : TMyClass; MyClass := TMyClass.Create(True); MyClass.FVariable := 'Test'; but as I found in C# there seems to be no way of inheriting a thread due to the fact the class is sealed. I'm guessing I'm just being narrow minded and my past Delphi experience is making this harder than is needs to be. Am I overlooking something simple here or can it just not be done? I would like to create a class that is basically a thread but with a couple of extra variables and functions in it. Thanks for any help!
×
×
  • Create New...