Show / Hide Table of Contents

    Class ICatExtension

    It's the class that contains ICat interface's extension method.

    This class must be public and static.

    Also it shouldn't be a geneic class

    Inheritance
    Object
    ICatExtension
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: CatLibrary
    Assembly: CatLibrary.dll
    Syntax
    public static class ICatExtension

    Methods

    | Improve this Doc View Source

    Play(ICat, String)

    Extension method to let cat play

    Declaration
    public static void Play(this ICat icat, string toy)
    Parameters
    Type Name Description
    ICat icat

    Cat

    String toy

    Something to play

    | Improve this Doc View Source

    Sleep(ICat, Int64)

    Extension method hint that how long the cat can sleep.

    Declaration
    public static void Sleep(this ICat icat, long hours)
    Parameters
    Type Name Description
    ICat icat

    The type will be extended.

    Int64 hours

    The length of sleep.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Play(ICat, String)
      • Sleep(ICat, Int64)
    Back to top Generated by DocFX