From a4c74234b4e09c6c89941a6967a145de663cdef0 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 19 Feb 2018 15:14:08 +0000 Subject: [PATCH] Introduce deliberate misspelling --- src/Microsoft.AspNetCore.Blazor/Components/BlazorComponent.cs | 2 +- src/Microsoft.AspNetCore.Blazor/Components/RenderHandle.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Blazor/Components/BlazorComponent.cs b/src/Microsoft.AspNetCore.Blazor/Components/BlazorComponent.cs index 3e879515ec..8a015fcbc9 100644 --- a/src/Microsoft.AspNetCore.Blazor/Components/BlazorComponent.cs +++ b/src/Microsoft.AspNetCore.Blazor/Components/BlazorComponent.cs @@ -80,7 +80,7 @@ namespace Microsoft.AspNetCore.Blazor.Components // This implicitly means a BlazorComponent can only be associated with a single // renderer. That's the only use case we have right now. If there was ever a need, // a component could hold a collection of render handles. - if (_renderHandle.IsInitalised) + if (_renderHandle.IsInitalized) { throw new InvalidOperationException($"The render handle is already set. Cannot initialize a {nameof(BlazorComponent)} more than once."); } diff --git a/src/Microsoft.AspNetCore.Blazor/Components/RenderHandle.cs b/src/Microsoft.AspNetCore.Blazor/Components/RenderHandle.cs index d3e3bb4c0c..4ab1185e6f 100644 --- a/src/Microsoft.AspNetCore.Blazor/Components/RenderHandle.cs +++ b/src/Microsoft.AspNetCore.Blazor/Components/RenderHandle.cs @@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Blazor.Components /// Gets a value that indicates whether the has been /// initialised and is ready to use. /// - public bool IsInitalised + public bool IsInitalized => _renderer != null; ///