Skip to content

Commit

Permalink
#27: Updated class for generating Class Documentation (in form of mar…
Browse files Browse the repository at this point in the history
…kdown)
  • Loading branch information
MarcinCelej committed May 14, 2023
1 parent 535d983 commit 02989b0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Documentation/Synergy.Documentation/Api/ClassDocumentation.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Reflection;
using System.Xml;
using Synergy.Catalogue;
using Synergy.Catalogue.Reflection;
using Synergy.Contracts.Requirements;
using Synergy.Convention.Testing;
using Synergy.Markdowns;

namespace Synergy.Contracts.Test.Documentation
namespace Synergy.Documentation.Api
{
public class ClassDocumentation : Markdown.Document
{
Expand Down Expand Up @@ -33,12 +33,14 @@ public ClassDocumentation(Type type)
}

var methods = type.GetMethods(BindingFlags.Public | BindingFlags.FlattenHierarchy | BindingFlags.Instance | BindingFlags.Static)
.Where(m => ApiDescription.NotIn(m.Name,
nameof(this.GetType),
nameof(this.ToString),
nameof(Equals),
nameof(object.ReferenceEquals),
nameof(this.GetHashCode)));
.Where(m =>
m.Name.NotIn(
nameof(this.GetType),
nameof(this.ToString),
nameof(Equals),
nameof(object.ReferenceEquals),
nameof(this.GetHashCode))
);

if (methods.Any())
{
Expand Down

0 comments on commit 02989b0

Please sign in to comment.