Yurttas/PL/OOL/CS/F/08/02/E01.cs
Jump to navigation
Jump to search
1/**
2 * Copyright(C) 2004
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : January 1, 2004.
11 * @author : Salih Yurttas.
12 */
13
14
15using System;
16using System.IO;
17
18namespace E00
19{
20 public class E01
21 {
22 private const int N=4;
23
24 public static void Main(string[] args)
25 {
26 string S = "A";
27
28 M(S, "X");
29
30 S = "B";
31
32 M(S, "Y");
33 }
34
35 public static void M(string s,
36 object o)
37 {
38 if(s!="A")
39 throw new AException(s,
40 o);
41 Console.WriteLine(s);
42 }
43 }
44}