Appendix E Generating Documentation in Visual Studio 1335 56 Radius = radiusValue; 57 } 58 59 /// 60 /// Provides get and set access to member 61 /// radius. 62 /// 63 /// 64 /// The set method ensures 65 /// that radius is 66 /// not set to a 67 /// negative number. 68 /// 69 /// 70 /// Radius accesses the value of the 71 /// radius data member. 72 /// 73 public double Radius 74 { 75 get 76 { 77 return radius; 78 } 79 80 set 81 { 82 if ( value >=0 ) 83 radius = value; 84 } 85 } 86 87 /// 88 /// Computes the diameter of the circle. 89 /// 90 /// 91 /// Returns the diameter of the circle. 92 /// 93 public double Diameter() 94 { 95 return Radius * 2; 96 } 97 98 /// 99 /// Computes the circumference of the circle. 100 /// 101 /// 102 /// Uses constant Math.PI 103 /// 104 /// 105 /// 106 /// Returns the circumference of the circle. 107 /// Fig. E.2 Fig. E.2Fig. E.FiFi2g. E.2g. E.2Circleclass marked up with XML comments. (Part 3 of 4.)
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.
This entry was posted
on Tuesday, October 30th, 2007 at 1:07 am and is filed under Tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.