public class Form1
{
private void Form1_Load(object sender, System.EventArgs e)
{
Fraction testfraction = new Fraction();
testfraction.Denominator = 20;
testfraction.Numerator = 5;
}
}
[DebuggerTypeProxy(typeof(Fraction.Check))]
public class Fraction
{
private int m_Numerator;
private int m_Denominator;
public int Numerator {
get {
return m_Numerator;
}
set {
m_Numerator = value;
}
}
public int Denominator {
get {
return m_Denominator;
}
set {
m_Denominator = value;
}
}
internal class Check
{
private Fraction frac = null;
public Check(Fraction f)
{
this.frac = f;
}
public int Numerator {
get {
return frac.Numerator;
}
}
public int Denominator {
get {
return frac.Denominator;
}
}
}
}
Copyright © 2006 SkillSoft. All rights reserved.
SkillSoft and the SkillSoft logo are trademarks or registered trademarks
of SkillSoft in the United States and certain other countries.
All other logos or trademarks are the property of their respective owners.