blah blah blah is here! blah blah » Close

0
votes
0 answers

Recursively retrieving lists of objects

I have a tree that I am going through and am trying to recursively retrieve lists of objects and add them to a "master" list so to speak. Here's the line where I ask for the lists: [code]List<MyItem> items = GetRetractable ...

1
votes
1 answers

Dictionary vs. Hashtable

Which is faster? Why, and if not in every situation when? Which do you prefer? Which is simpler? For my purposes performance is a huge factor, so performance > simplicity.

1
votes
1 answers

C# Generics Question

Here's some code I have written: [code] using System; namespace GenericsTest { class Program { static void Main(string[] args) { Console.WriteLine(Create<MyClass>()); Console ...

0
votes
1 answers

Point inside Angle

I am unsure how to find a point that resides within a given angle. [code] float angleSize = 45; //rep. 45 degree angle float rototation = 0; float min = rotation - angleSize / 2.0f; float max = rotation + angleSize / 2.0f; // ...

1
votes
1 answers

Mutator class, my little expirament

I've created a Mutator class that looks like : [code] namespace Engine.Core.Mutators { public abstract class Mutator { private Dictionary<string, object> _mutatableObjects; private Dictionary<string, ...

0
votes
1 answers

C# Drawing to Bitmap Laggy

I need to find an efficient way to draw basic rectangles to a bitmap and have my PictureBox reflect that bitmap. As it stands I am drawing to the bitmap and my PictureBox reflects that image. However the drawing is super laggy; especially w ...

1
votes
1 answers

Bitmap.Save() Problems

I'm getting a generic GDI+ error when I save my Bitmap more than once. The complaint is that the Bitmap is being used by another process. I've tried manually closing, flushing, nullifying, and disposing the stream. Nothing I've tried has wo ...

0
votes
1 answers

Odd Dll Reference Error

I have been working on a project that has its source code stored on my flash drive. I've been bouncing back and forth between my friends house and my school to work on it. It wasn't until I brought the project home that I received any error ...

0
votes
1 answers

C# Custom Datatype?

I'm trying to create a custom data type for a project I'm working on. The idea is that the datatype will be a "serial" number that looks something like: 0x010000305 ...you get the idea. I want to be able to say Serial mySer = 0 ...

0
votes
1 answers

dynamic binary deserialization

I have no trouble serializing the object's and their data - even if i don't know the object's type. the problem is with the deserialization of that data. because i don't know the types of objects, aside from the most primitive custom type & ...

0
votes
1 answers

Lists and such

public class Item { /*some variables */ public Item(){} } public class myItem : Item { public myItem(){/*some variables*/} } public class Inventory : List<Item> { public Inventory() {} } OK so I have two instances o ...

0
votes
1 answers

objects, lists, HELP

Classes: class Item class Inventory : List<Item> class Bandage : Item Methods: class Inventory : List<Item> has this method to add items: public void AddItem(Item e, List<Item> list) { i ...

0
votes
1 answers

url history

how would I go about writing a program to search previously viewed website pages for a given list of keywords? I thought to start by locating a url history folder. This is an imaginary folder I guess...I can't find it.

0
votes
1 answers

C# - File Search

The basic way I want this to work is this: 1. Program asks user for a process name: string pname. 2. Program searches computer for an executable file that contains pname. 3. Program executes that file. How do I do this?

0
votes
1 answers

Text Files

hey, how do you read through lines of a text file, and load each line into separate labels in a windows form?

Feedback