File: SimpleExtension.cs

package info (click to toggle)
nant 0.85.dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 8,328 kB
  • ctags: 6,758
  • sloc: cs: 50,420; sh: 483; makefile: 137; cpp: 70; xml: 40
file content (12 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
using System;
   
//Calculates the circumference of a circle given the radius.
public class Calculate {

   private double circ = 0;
      
   public double Circumference(double radius){
      circ = Math.PI*2*radius;
      return circ;
   }
}