Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: forester joe [x]
Tip/Trick 12 May 2013   license: CPOL
A basic yet generic state machine implementation
Mocking Event Handlers by forester joe
Tip/Trick 11 May 2013   license: CPOL
A solution for monitoring Events called during test
Re: Not an article by forester joe
Forum Message 11 May 2013  
OK I Guess
Re: Not an article. by forester joe
Forum Message 11 May 2013  
OK will move to tip.
Re: Hmmmm.... by forester joe
Forum Message 11 May 2013  
I guess I wasn't clear enough on this point. I will explain better. but first I want to say that you are right, and that I was trying to say just that. one the one hand we definitely want to test th
My vote of 5 by forester joe
Forum Message 11 Apr 2013  
Classic into to new Technology. the project wizard walkthrough, the hello world with a little extra.
Answer 10 Mar 2013   license: CPOL
attributes are like properties of the Type or the member. and are not data in an instance.suppose I have the following classes:public class UserData1{ public string Text { get; set;} public string Name { get; set;} public string Address { get; set;}}public class...
C#
Answer 10 Mar 2013   license: CPOL
serialization is the process of translating an object that is represented in memory, into a "flat" format that can be stored, usually in a text format, or a byte array.the serialization needs to be two way- to allow a reader to recreate the object from the flat format.for...
C#
Contact Detection Algorithm by forester joe
Answer 5 Mar 2013   license: CPOL
I think the best solution combines both comments above, and should look something like this:if( ! Ball1.IntersectsWith(Ball2)){ return false;}double Ball1CenterX = (Ball1.Right - Ball1.Width)/2;double Ball2CenterX = (Ball2.Right - Ball2.Width)/2;double Ball1CenterY =...
custom event - button.click by forester joe
Answer 4 Mar 2013   license: CPOL
I don't understand what the problem or the requested result are.it looks like you want to have something like this:public class MyForm : Form{ Button button1; Button button2; public void init() { //register method to handle event button1.Click +=...
C#
Answer 4 Mar 2013   license: CPOL
here is y solution. scales to any number of strings.probably performs a bit better than the other alternatives:bool AreEqualStrings(params string[] Strings){ for (int i = 1; i
C#
Answer 4 Mar 2013   license: CPOL
Windows Vista comes with .NET 3.0 (.NET 2.0 CLR)Windows 7 comes with .NET 3.5 (.NET 2.0 CLR)windows 8 comes with .NET 4.5 (no .NET 2.0!!!)not familiar enough with windows server versions, but they are parallel.this has been a bit of a challenge for my team. and we had to build a shim...
Declare a pubilc variable by forester joe
Answer 4 Mar 2013   license: CPOL
It sounds like you doing something like this:public class MyForm : Form{ public void foo() { Data = "balbla"; } public string Data;}public void bar(){ MyForm form1 = new MyForm(); form1.foo(); MyForm form2 = new...
C#
Answer 4 Mar 2013   license: CPOL
Although there is a lot of room for going wrong in this answer, here is a simple solution.using System.Data.Linq;using System.Data.Linq.Mapping;namespace FileToDb{ [Database] public class MyDataDB : DataContext { public MyDataDB ( ) : base("Data Source=..." ...
C#
Question 4 Mar 2013   license: CPOL
how many times have you created a dictionary that looks like this:MyClass a;var data = new Dictionary();data.Add(a.Name,a);Or maybe worse:var data = new Dictionary();data.Add(a,a);what if we could create a Dictionary that bound the key to a...
C#
Thanks by forester joe
error in code by forester joe
Forum Message 28 Jan 2009  
in p6.cs public void CreateObjectOfNestedClass() sould be public object CreateObjectOfNestedClass()

Page 1 of 1


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid