本文整理汇总了C#中ISupportsInterning类的典型用法代码示例。如果您正苦于以下问题:C# ISupportsInterning类的具体用法?C# ISupportsInterning怎么用?C# ISupportsInterning使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISupportsInterning类属于命名空间,在下文中一共展示了ISupportsInterning类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
GetClassTypeReference o = other as GetClassTypeReference;
return o != null && assembly == o.assembly && fullTypeName == o.fullTypeName;
}
示例2:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
GetClassTypeReference o = other as GetClassTypeReference;
return o != null && name == o.name && nameSpace == o.nameSpace && typeParameterCount == o.typeParameterCount;
}
示例3:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
SimpleConstantValue scv = other as SimpleConstantValue;
return scv != null && type == scv.type && value == scv.value;
}
示例4: EqualsForInterning
public bool EqualsForInterning(ISupportsInterning other)
{
throw new NotImplementedException();
}
示例5:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
ParameterizedTypeReference o = other as ParameterizedTypeReference;
if (o != null && genericType == o.genericType && typeArguments.Length == o.typeArguments.Length) {
for (int i = 0; i < typeArguments.Length; i++) {
if (typeArguments[i] != o.typeArguments[i])
return false;
}
return true;
}
return false;
}
示例6:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
ConstantUnaryOperator uop = other as ConstantUnaryOperator;
return uop != null
&& this.operatorType == uop.operatorType
&& this.expression == uop.expression;
}
示例7:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
DefaultParameter p = other as DefaultParameter;
return p != null && type == p.type && attributes == p.attributes
&& defaultValue == p.defaultValue && region == p.region && flags == p.flags;
}
示例8:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
DefaultMemberReference o = other as DefaultMemberReference;
return o != null && entityType == o.entityType && typeReference == o.typeReference && name == o.name && parameterTypes == o.parameterTypes;
}
示例9:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
NestedTypeReference o = other as NestedTypeReference;
return o != null && declaringTypeRef == o.declaringTypeRef && name == o.name && additionalTypeParameterCount == o.additionalTypeParameterCount;
}
示例10:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
return false;
}
示例11: ListEquals
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
DefaultUnresolvedAttribute o = other as DefaultUnresolvedAttribute;
return o != null && attributeType == o.attributeType
&& constructorParameterTypes == o.constructorParameterTypes && positionalArguments == o.positionalArguments
&& ListEquals(namedArguments ?? EmptyList<KeyValuePair<IMemberReference, IConstantValue>>.Instance,
o.namedArguments ?? EmptyList<KeyValuePair<IMemberReference, IConstantValue>>.Instance);
}
示例12:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
PointerTypeReference o = other as PointerTypeReference;
return o != null && this.elementType == o.elementType;
}
示例13:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
DefaultAttribute a = other as DefaultAttribute;
return a != null && attributeType == a.attributeType && positionalArguments == a.positionalArguments && namedArguments == a.namedArguments && region == a.region;
}
示例14:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
AttributeTypeReference atr = other as AttributeTypeReference;
return atr != null && this.withoutSuffix == atr.withoutSuffix && this.withSuffix == atr.withSuffix;
}
示例15:
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
{
UnresolvedAttributeBlob o = other as UnresolvedAttributeBlob;
return o != null && attributeType == o.attributeType && ctorParameterTypes == o.ctorParameterTypes
&& BlobReader.BlobEquals(blob, o.blob);
}