2014-08-13 10:39:27 +01:00
|
|
|
//
|
|
|
|
// Author:
|
|
|
|
// Jb Evain (jbevain@gmail.com)
|
|
|
|
//
|
2016-11-10 13:04:39 +00:00
|
|
|
// Copyright (c) 2008 - 2015 Jb Evain
|
|
|
|
// Copyright (c) 2008 - 2011 Novell, Inc.
|
2014-08-13 10:39:27 +01:00
|
|
|
//
|
2016-11-10 13:04:39 +00:00
|
|
|
// Licensed under the MIT/X11 license.
|
2014-08-13 10:39:27 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using Mono.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Mono.Cecil {
|
|
|
|
|
|
|
|
public abstract class PropertyReference : MemberReference {
|
|
|
|
|
|
|
|
TypeReference property_type;
|
|
|
|
|
|
|
|
public TypeReference PropertyType {
|
|
|
|
get { return property_type; }
|
|
|
|
set { property_type = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract Collection<ParameterDefinition> Parameters {
|
|
|
|
get;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal PropertyReference (string name, TypeReference propertyType)
|
|
|
|
: base (name)
|
|
|
|
{
|
2017-04-10 11:41:01 +00:00
|
|
|
Mixin.CheckType (propertyType, Mixin.Argument.propertyType);
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
property_type = propertyType;
|
|
|
|
}
|
|
|
|
|
2016-11-10 13:04:39 +00:00
|
|
|
protected override IMemberDefinition ResolveDefinition ()
|
|
|
|
{
|
|
|
|
return this.Resolve ();
|
|
|
|
}
|
|
|
|
|
|
|
|
public new abstract PropertyDefinition Resolve ();
|
2014-08-13 10:39:27 +01:00
|
|
|
}
|
|
|
|
}
|