Make spelling one step closer to correctness
This commit is contained in:
parent
ea2019ac39
commit
796d915526
|
|
@ -80,7 +80,7 @@ namespace Microsoft.AspNetCore.Blazor.Components
|
||||||
// This implicitly means a BlazorComponent can only be associated with a single
|
// 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,
|
// 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.
|
// a component could hold a collection of render handles.
|
||||||
if (_renderHandle.IsInitalized)
|
if (_renderHandle.IsInitialized)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException($"The render handle is already set. Cannot initialize a {nameof(BlazorComponent)} more than once.");
|
throw new InvalidOperationException($"The render handle is already set. Cannot initialize a {nameof(BlazorComponent)} more than once.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.Blazor.Components
|
||||||
/// Gets a value that indicates whether the <see cref="RenderHandle"/> has been
|
/// Gets a value that indicates whether the <see cref="RenderHandle"/> has been
|
||||||
/// initialised and is ready to use.
|
/// initialised and is ready to use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsInitalized
|
public bool IsInitialized
|
||||||
=> _renderer != null;
|
=> _renderer != null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue