本文整理汇总了C#中IInterningProvider.Intern方法的典型用法代码示例。如果您正苦于以下问题:C# IInterningProvider.Intern方法的具体用法?C# IInterningProvider.Intern怎么用?C# IInterningProvider.Intern使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IInterningProvider
的用法示例。
在下文中一共展示了IInterningProvider.Intern方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApplyInterningProvider
public override void ApplyInterningProvider(IInterningProvider provider)
{
base.ApplyInterningProvider(provider);
getter = provider.Intern(getter);
setter = provider.Intern(setter);
parameters = provider.InternList(parameters);
}
示例2: ApplyInterningProvider
public override void ApplyInterningProvider(IInterningProvider provider)
{
base.ApplyInterningProvider(provider);
addAccessor = provider.Intern(addAccessor);
removeAccessor = provider.Intern(removeAccessor);
invokeAccessor = provider.Intern(invokeAccessor);
}
示例3: ApplyInterningProvider
public virtual void ApplyInterningProvider(IInterningProvider provider)
{
if (provider != null) {
returnType = provider.Intern(returnType);
attributes = provider.InternList(attributes);
interfaceImplementations = provider.InternList(interfaceImplementations);
name = provider.Intern(name);
}
}
示例4:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
nameSpace = provider.Intern(nameSpace);
name = provider.Intern(name);
}
示例5:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
elementType = provider.Intern(elementType);
arrayElements = provider.InternList(arrayElements);
}
示例6:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
withoutSuffix = provider.Intern(withoutSuffix);
withSuffix = provider.Intern(withSuffix);
}
示例7:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
elementType = provider.Intern(elementType);
}
示例8:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
shortName = provider.Intern(shortName);
}
示例9:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
InterfaceType = provider.Intern(InterfaceType);
MemberName = provider.Intern(MemberName);
}
示例10:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
declaringTypeRef = provider.Intern(declaringTypeRef);
name = provider.Intern(name);
}
示例11:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
attributeType = provider.Intern(attributeType);
if (constructorParameterTypes != null) {
for (int i = 0; i < constructorParameterTypes.Length; i++) {
constructorParameterTypes[i] = provider.Intern(constructorParameterTypes[i]);
}
}
positionalArguments = provider.InternList(positionalArguments);
}
示例12:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
if (!this.IsFrozen) {
attributeType = provider.Intern(attributeType);
constructorParameterTypes = provider.InternList(constructorParameterTypes);
positionalArguments = provider.InternList(positionalArguments);
if (namedArguments != null) {
for (int i = 0; i < namedArguments.Count; i++) {
namedArguments[i] = new KeyValuePair<IMemberReference, IConstantValue>(
provider.Intern(namedArguments[i].Key),
provider.Intern(namedArguments[i].Value)
);
}
}
Freeze();
}
}
示例13:
void ISupportsInterning.PrepareForInterning(IInterningProvider provider)
{
name = provider.Intern(name);
type = provider.Intern(type);
attributes = provider.InternList(attributes);
defaultValue = provider.Intern(defaultValue);
}
示例14: ApplyInterningProvider
public virtual void ApplyInterningProvider(IInterningProvider provider)
{
if (provider == null)
throw new ArgumentNullException("provider");
ThrowIfFrozen();
name = provider.Intern(name);
attributes = provider.InternList(attributes);
if (rareFields != null)
rareFields.ApplyInterningProvider(provider);
}
示例15: ApplyInterningProvider
public override void ApplyInterningProvider(IInterningProvider provider)
{
base.ApplyInterningProvider(provider);
if (provider != null)
constantValue = provider.Intern(constantValue);
}