Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code and correct some typos #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Attributes/BreadcrumbAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class BreadcrumbAttribute : Attribute
public Type FromController { get; set; }

/// <summary>
/// Wheither to replace the node's title with what was found in ViewData.
/// Whether to replace the node's title with what was found in ViewData.
/// <para>Only usable when the Title is "ViewData.Something".</para>
/// </summary>
public bool OverwriteTitleOnExactMatch { get; set; }
Expand Down Expand Up @@ -93,7 +93,7 @@ public virtual string ExtractFromKey(Type type)
throw new SmartBreadcrumbsException($"'{fromControllerType.Name}' is used in FromController but isn't a Controller.");

var actionMethod = fromControllerType.GetMethods(BindingFlags.Instance | BindingFlags.Public)
.FirstOrDefault(m=>m.Name == FromAction); //to prevent AmbiguousMatchException
.FirstOrDefault(m => m.Name == FromAction); //to prevent AmbiguousMatchException

if (actionMethod == null || actionMethod.ReturnType.IsAction() == false)
throw new SmartBreadcrumbsException($"{fromControllerType.Name} doesn't contain a valid action named {FromAction}.");
Expand Down
4 changes: 2 additions & 2 deletions src/BreadcrumbOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class BreadcrumbOptions
public string TagName { get; set; }

/// <summary>
/// The parent element tag classes (seperated by a space).
/// The parent element tag classes (separated by a space).
/// </summary>
public string TagClasses { get; set; }

Expand All @@ -32,7 +32,7 @@ public class BreadcrumbOptions
public string ActiveLiClasses { get; set; }

/// <summary>
/// In case you want to insert a seperator element between items.\n
/// In case you want to insert a separator element between items.\n
/// <para>Example: &lt;li class="separator"&gt;/&lt;/li&gt;</para>
/// </summary>
public string SeparatorElement { get; set; }
Expand Down