本文整理汇总了C#中ICSharpCode.NRefactory.CSharp.GetActualType方法的典型用法代码示例。如果您正苦于以下问题:C# ICSharpCode.NRefactory.CSharp.GetActualType方法的具体用法?C# ICSharpCode.NRefactory.CSharp.GetActualType怎么用?C# ICSharpCode.NRefactory.CSharp.GetActualType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICSharpCode.NRefactory.CSharp
的用法示例。
在下文中一共展示了ICSharpCode.NRefactory.CSharp.GetActualType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MappedInvocation
public MappedInvocation(NRefactory.ConstructorDeclaration ctor, MethodDefinition baseCtor) {
var parameterTypes = new List<Type>();
var ctorType = ctor.GetActualType();
_parameters = ctor.Parameters
.Select((p, i) => {
return new Parameter(p.Name, p.GetActualType(), i);
})
.ToArray();
_parameterDeclarations = ctor.Parameters.ToArray();
_visitor.VisitConstructorDeclaration(ctor, null);
_outParameters = new List<Parameter>();
parameterTypes = new List<Type>();
_parameters.ForEach((p, i) => {
var type = p.Type;
if (_visitor.Contains(p.Name)) {
if (!type.IsByRef) {
type = type.MakeByRefType();
p = new Parameter(p.Name, type, p.Location);
}
_outParameters.Add(p);
}
parameterTypes.Add(type);
});
VerifyUniqueness(ctorType, parameterTypes);
Parameters = parameterTypes.ToArray();
}
示例2: TypeExpression
public TypeExpression(NRefactory.ComposedType composedType, IScope scope, INRefcatoryExpressionVisitor visitor)
: this(composedType, TypeDescription.Composed, scope, visitor) {
InternalType = composedType.GetActualType();
}