예제 #1
0
        // Overrides the ConvertFrom method of TypeConverter.
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value is string)
            {
                int16 result = short.Parse((string)value);
                return(result);
            }

            return(base.ConvertFrom(context, culture, value));
        }
예제 #2
0
 /* comment after function
  *  Hello!
  */
 // Test function
 private static void test(@int a, int16 b, slice <@byte> c)
 {
     fmt.Println(a);
 }
예제 #3
0
 public Movie(){titulo = "n/a",año = "n/a", pais = "n/a",director = "n/a";}
예제 #4
0
 public void SetAño(string a){año = a;}
예제 #5
0
 public Movie (int16 año) {this.año=an;}
예제 #6
0
파일: Program.cs 프로젝트: zefra/p.oo
 public pelicula()
 {
     titulo = "n/a", años = "n/a", pais = "n/a", director = "n/a";
 }