1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.DynamicProxy
.Tests
.Classes
19 public class DiffAccessLevelOnProperties
21 private int age
, age2
;
22 private int maxval
, maxval2
;
25 public void SetProperties()
34 public virtual int Age
36 protected get { return age; }
40 public virtual int Age2
43 protected set { age2 = value; }
46 public virtual int Maxval
48 private get { return maxval; }
49 set { maxval = value; }
54 get { return maxval2; }
55 private set { maxval2 = value; }
58 public virtual string Name
60 internal get { return name; }
64 public override string ToString()
66 return String
.Format("{0} {1} {2} {3} {4}", Age
, Age2
, Maxval
, Maxval2
, Name
);