Fixing an issue with output parameters that are of type IntPtr
[castle.git] / InversionOfControl / Castle.MicroKernel.Tests / Configuration / Components / ClassWithComplexParameter.cs
blob73470abd4dbc91a37641daa58a661f5e9d84ded0
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
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.using System;
15 namespace Castle.MicroKernel.Tests.Configuration.Components
17 using Castle.MicroKernel.SubSystems.Conversion;
19 public class ClassWithComplexParameter
21 private ComplexParameterType param1;
23 [Convertible]
24 public class ComplexParameterType
26 private string mandatoryValue;
27 private string optionalValue;
29 public ComplexParameterType()
31 // sets default values
32 mandatoryValue = "default1";
33 optionalValue = "default2";
36 public ComplexParameterType(string mandatoryValue)
38 this.mandatoryValue = mandatoryValue;
41 public string MandatoryValue
43 get { return mandatoryValue; }
46 public string OptionalValue
48 get { return optionalValue; }
49 set { optionalValue = value; }
53 public ComplexParameterType ComplexParam
55 get { return param1; }
56 set { param1 = value; }