"content": "<h1 class='section api' data-uid='CatLibrary.ICatExtension' data-commentId='T:CatLibrary.ICatExtension' id='CatLibrary_ICatExtension'>Class ICatExtension <a class='header-action link-secondary' title='View source' href='https://github.com/dotnet/docfx/blob/main/samples/seed/dotnet/solution/CatLibrary/Class1.cs#L333'><i class='bi bi-code-slash'></i></a></h1>\r\n <div class=\"facts text-secondary\">\r\n<dl><dt>Namespace</dt><dd><a href='CatLibrary.html'>CatLibrary</a></dd></dl><dl><dt>Assembly</dt><dd>CatLibrary.dll</dd></dl>\r\n</div><p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">It's the class that contains ICat interface's extension method.</p>\n<p>This class must be <b>public</b> and <b>static</b>.</p>\n<p>Also it shouldn't be a geneic class</p>\n<pre><code class='lang-csharp'>public static class ICatExtension</code></pre><h4 class='section'>Inheritance</h4><dl class=\"typelist inheritance\"><dd>\r\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object'>object</a>\n</div>\n<div>\n<a href='CatLibrary.ICatExtension.html'>ICatExtension</a>\n</div>\n\r\n</dd></dl><h4 class='section'>Inherited Members</h4><dl class=\"typelist\"><dd>\r\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)'>object.Equals(object?)</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)'>object.Equals(object?, object?)</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.gethashcode'>object.GetHashCode()</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.gettype'>object.GetType()</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone'>object.MemberwiseClone()</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.referenceequals'>object.ReferenceEquals(object?, object?)</a>\n</div>\n<div>\n<a href='https://learn.microsoft.com/dotnet/api/system.object.tostring'>object.ToString()</a>\n</div>\n\r\n</dd></dl><h2 class='section'>Methods</h2><h3 class='section api' data-uid='CatLibrary.ICatExtension.Play(CatLibrary.ICat,CatLibrary.Core.ContainersRefType.ColorType)' data-commentId='M:CatLibrary.ICatExtension.Play(CatLibrary.ICat,CatLibrary.Core.ContainersRefType.ColorType)' id='CatLibrary_ICatExtension_Play_CatLibrary_ICat_CatLibrary_Core_ContainersRefType_ColorType_'>Play(ICat, ColorType) <a class='header-action link-secondary' title='View source' href='https://github.com/dotnet/docfx/blob/main/samples/seed/dotnet/solution/CatLibrary/Class1.cs#L347'><i class='bi bi-code-slash'></i></a></h3>\r\n <p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">Extension method to let cat play</p>\n<pre><code class='lang-csharp'>public static void Play(this ICat icat, ContainersRefType.ColorType toy)</code></pre><h4 class='section'>Parameters</h4><dl class='parameters'><dt><code>icat</code> <a href='CatLibrary.ICat.html'>ICat</a> </dt>\r\n<dd>\r\n\r\n\r\n<p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">Cat</p>\n\r\n</dd><dt><code>toy</code> <a href='CatLibrary.Core.ContainersRefType.html'>ContainersRefType</a>.<a href='CatLibrary.Core.ContainersRefType.ColorType.html'>ColorType</a> </dt>\r\n<dd>\r\n\r\n\r\n<p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">Something to play</p>\n\r\n</dd></dl><h3 class='section api' data-uid='CatLibrary.ICatExtension.Sleep(CatLibrary.ICat,System.Int64)' data-commentId='M:CatLibrary.ICatExtension.Sleep(CatLibrary.ICat,System.Int64)' id='CatLibrary_ICatExtension_Sleep_CatLibrary_ICat_System_Int64_'>Sleep(ICat, long) <a class='header-action link-secondary' title='View source' href='https://github.com/dotnet/docfx/blob/main/samples/seed/dotnet/solution/CatLibrary/Class1.cs#L340'><i class='bi bi-code-slash'></i></a></h3>\r\n <p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">Extension method hint that how long the cat can sleep.</p>\n<pre><code class='lang-csharp'>public static void Sleep(this ICat icat, long hours)</code></pre><h4 class='section'>Parameters</h4><dl class='parameters'><dt><code>icat</code> <a href='CatLibrary.ICat.html'>ICat</a> </dt>\r\n<dd>\r\n\r\n\r\n<p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">The type will be extended.</p>\n\r\n</dd><dt><code>hours</code> <a href='https://learn.microsoft.com/dotnet/api/system.int64'>long</a> </dt>\r\n<dd>\r\n\r\n\r\n<p sourceFile=\"obj/apipage/CatLibrary.ICatExtension.yml\" sourceStartLineNumber=\"1\">The length of sleep.</p>\n\r\n</dd></dl>",
0 commit comments