# Microsoft.AspNetCore.DataProtection.Internal

``` diff
 namespace Microsoft.AspNetCore.DataProtection.Internal {
     public interface IActivator {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
-        object CreateInstance(Type expectedBaseType, string implementationTypeName);
+        object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type expectedBaseType, string implementationTypeName);
     }
 }
```

