1 // Copyright 2004-2008 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.
18 using System
.Reflection
;
21 /// Represents a property and the respective dependency.
26 public class PropertySet
28 private readonly PropertyInfo propertyInfo
;
29 private readonly DependencyModel dependency
;
32 /// Initializes a new instance of the <see cref="PropertySet"/> class.
34 /// <param name="propertyInfo">The property info.</param>
35 /// <param name="dependency">The dependency.</param>
36 public PropertySet(PropertyInfo propertyInfo
, DependencyModel dependency
)
38 this.propertyInfo
= propertyInfo
;
39 this.dependency
= dependency
;
43 /// Gets the property.
45 /// <value>The property.</value>
46 public PropertyInfo Property
48 get { return propertyInfo; }
52 /// Gets the dependency.
54 /// <value>The dependency.</value>
55 public DependencyModel Dependency
57 get { return dependency; }