From ce52bb5ebdb5919e66f8cf72ff943423559365ec Mon Sep 17 00:00:00 2001 From: Greeng0 Date: Mon, 18 Feb 2019 22:44:53 -0500 Subject: [PATCH] Corrected typos (#11000) --- aspnetcore/security/authorization/policies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/authorization/policies.md b/aspnetcore/security/authorization/policies.md index 6c43bd4124..05fa28b27e 100644 --- a/aspnetcore/security/authorization/policies.md +++ b/aspnetcore/security/authorization/policies.md @@ -114,7 +114,7 @@ The `HandleRequirementAsync` method you implement in an authorization handler ha For example, MVC passes an instance of [AuthorizationFilterContext](/dotnet/api/?term=AuthorizationFilterContext) in the `Resource` property. This property provides access to `HttpContext`, `RouteData`, and everything else provided by MVC and Razor Pages. -The use of the `Resource` property is framework specific. Using information in the `Resource` property limits your authorization policies to particular frameworks. You should cast the `Resource` property using the `as` keyword, and then confirm the cast has succeed to ensure your code doesn't crash with an `InvalidCastException` when run on other frameworks: +The use of the `Resource` property is framework specific. Using information in the `Resource` property limits your authorization policies to particular frameworks. You should cast the `Resource` property using the `is` keyword, and then confirm the cast has succeeded to ensure your code doesn't crash with an `InvalidCastException` when run on other frameworks: ```csharp // Requires the following import: