New to Telerik JustMockStart a free 30-day trial

A list of attributes that must not be replicated when building a proxy. JustMock tries to copy all attributes from the types and methods being proxied, but that is not always a good idea for every type of attribute. Add additional attributes to this list that prevent the proxy from working correctly.

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Syntax:

C#
public static class AttributesToAvoidReplicating

Inheritance: objectAttributesToAvoidReplicating

Methods

Adds a specific attribute type to the list of attributes to avoid replicating when creating a proxy. Use this method when the attribute type is determined at runtime.

C#
public static void Add(Type attribute)
Parameters:attributeType

The Type of the attribute to avoid replicating.

Adds a specific attribute type to the list of attributes to avoid replicating when creating a proxy. This generic method is a type-safe alternative to the Add(Type) method.

C#
public static void Add<T>()
In this article
DefinitionMethodsAdd(Type)Add<T>()
Not finding the help you need?
Contact Support