本文整理汇总了C#中IGenericBinder类的典型用法代码示例。如果您正苦于以下问题:C# IGenericBinder类的具体用法?C# IGenericBinder怎么用?C# IGenericBinder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IGenericBinder类属于命名空间,在下文中一共展示了IGenericBinder类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetParameterType
internal Type GetParameterType(IGenericBinder binder, int index)
{
return parameterTypes[index].BindTypeParameters(binder);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例2: GetReturnTypeOptionalCustomModifiers
internal Type[] GetReturnTypeOptionalCustomModifiers(IGenericBinder binder)
{
return BindTypeParameters(binder, modifiers, 0, 0);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例3: GetReturnTypeRequiredCustomModifiers
internal Type[] GetReturnTypeRequiredCustomModifiers(IGenericBinder binder)
{
return BindTypeParameters(binder, modifiers, 0, 1);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例4: BindArray
private static Type[] BindArray(Type[] array, IGenericBinder binder)
{
if (array ==null || array.Length == 0)
{
return array;
}
Type[] result = array;
for (int i = 0; i < array.Length; i++)
{
Type type = array[i].BindTypeParameters(binder);
if (!ReferenceEquals(type, array[i]))
{
if (result == array)
{
result = (Type[])array.Clone();
}
result[i] = type;
}
}
return result;
}
开发者ID:ngraziano,项目名称:mono,代码行数:21,代码来源:Type.cs
示例5: BindTypeParameters
internal sealed override Type BindTypeParameters(IGenericBinder binder)
{
Type type = elementType.BindTypeParameters(binder);
CustomModifiers mods = this.mods.Bind(binder);
if (ReferenceEquals(type, elementType)
&& mods.Equals(this.mods))
{
return this;
}
return Wrap(type, mods);
}
开发者ID:nestalk,项目名称:mono,代码行数:11,代码来源:Type.cs
示例6: InplaceBindTypeParameters
internal static void InplaceBindTypeParameters(IGenericBinder binder, Type[] types)
{
for (int i = 0; i < types.Length; i++)
{
types[i] = types[i].BindTypeParameters(binder);
}
}
开发者ID:ngraziano,项目名称:mono,代码行数:7,代码来源:Type.cs
示例7: GetParameterCustomModifiers
internal CustomModifiers GetParameterCustomModifiers(IGenericBinder binder, int index)
{
return modifiers.GetParameterCustomModifiers(index).Bind(binder);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:MethodSignature.cs
示例8: Bind
internal PackedCustomModifiers Bind(IGenericBinder binder)
{
if (customModifiers == null)
{
return new PackedCustomModifiers();
}
CustomModifiers[] expanded = new CustomModifiers[customModifiers.Length];
for (int i = 0; i < customModifiers.Length; i++)
{
expanded[i] = customModifiers[i].Bind(binder);
}
return new PackedCustomModifiers(expanded);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:13,代码来源:MethodSignature.cs
示例9: BindTypeParameters
protected static Type[] BindTypeParameters(IGenericBinder binder, Type[][][] types, int index, int optOrReq)
{
if (types == null || types[index] == null)
{
return null;
}
return BindTypeParameters(binder, types[index][optOrReq]);
}
开发者ID:koush,项目名称:mono,代码行数:8,代码来源:Signature.cs
示例10: GetReturnTypeCustomModifiers
internal CustomModifiers GetReturnTypeCustomModifiers(IGenericBinder binder)
{
return modifiers.GetReturnTypeCustomModifiers().Bind(binder);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:MethodSignature.cs
示例11: BindTypeParameters
internal override Type BindTypeParameters(IGenericBinder binder)
{
int owner = module.GenericParam.records[index].Owner;
if ((owner >> 24) == MethodDefTable.Index)
{
return binder.BindMethodParameter(this);
}
else
{
return binder.BindTypeParameter(this);
}
}
开发者ID:koush,项目名称:mono,代码行数:12,代码来源:GenericTypeParameter.cs
示例12: GetParameterOptionalCustomModifiers
internal Type[] GetParameterOptionalCustomModifiers(IGenericBinder binder, int index)
{
return BindTypeParameters(binder, modifiers, index + 1, 0);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例13: BindTypeParameters
protected static Type[] BindTypeParameters(IGenericBinder binder, Type[] types)
{
if (types == null || types.Length == 0)
{
return Type.EmptyTypes;
}
Type[] expanded = new Type[types.Length];
for (int i = 0; i < types.Length; i++)
{
expanded[i] = types[i].BindTypeParameters(binder);
}
return expanded;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:13,代码来源:Signature.cs
示例14: GetParameterRequiredCustomModifiers
internal Type[] GetParameterRequiredCustomModifiers(IGenericBinder binder, int index)
{
return BindTypeParameters(binder, modifiers, index + 1, 1);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例15: BindTypeParameters
internal override Type BindTypeParameters(IGenericBinder binder)
{
return this;
}
开发者ID:Semogj,项目名称:ikvm-fork,代码行数:4,代码来源:Missing.cs
示例16: BindTypeParameters
internal virtual Type BindTypeParameters(IGenericBinder binder)
{
if (IsGenericTypeDefinition)
{
Type[] args = GetGenericArguments();
Type.InplaceBindTypeParameters(binder, args);
return GenericTypeInstance.Make(this, args, null, null);
}
else
{
return this;
}
}
开发者ID:ngraziano,项目名称:mono,代码行数:13,代码来源:Type.cs
示例17: GetReturnType
internal Type GetReturnType(IGenericBinder binder)
{
return returnType.BindTypeParameters(binder);
}
开发者ID:ngraziano,项目名称:mono,代码行数:4,代码来源:MethodSignature.cs
示例18: GetReturnType
internal Type GetReturnType(IGenericBinder binder)
{
if (binder == null)
return returnType;
return returnType.BindTypeParameters(binder);
}
开发者ID:runefs,项目名称:Marvin,代码行数:7,代码来源:MethodSignature.cs
注:本文中的IGenericBinder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论