Example #1
0
 public TeeMember(ISteelSection Section)
 {
     if (Section.Shape is ISectionTee)
     {
         ISectionTee tee = Section.Shape as ISectionTee;
         FlangeCompactness = new FlangeOfTee(Section.Material, tee);
         WebCompactness    = new StemOfTee(Section.Material, tee);
     }
     else
     {
         throw new SectionWrongTypeException(typeof(ISectionTee));
     }
 }
           ICompactnessElement FlangeCompactness;
           ICompactnessElement WebCompactness;

           public TeeMember(ISteelSection Section)
            {

                if (Section.Shape is ISectionTee)
                {
                    ISectionTee tee = Section.Shape as ISectionTee;
                    FlangeCompactness = new FlangeOfTee(Section.Material, tee);
                    WebCompactness = new StemOfTee(Section.Material, tee);
                }
                else
                {
                    throw new SectionWrongTypeException(typeof(ISectionTee));