using System;
using System.Data.Sql;
using System.Data.SqlTypes;
using System.Runtime.InteropServices;
using Microsoft.SqlServer.Server;

[Serializable]
[StructLayout(LayoutKind.Sequential)]
[SqlUserDefinedType(Format.Native)]
public class Cat : INullable
{
    public int pawcount = 4;
    public override string ToString()
    {
        string s = "null";
        // Put your code here
        return s;
    }

    public virtual bool IsNull
    {
        get
        {
            // Put your code here
            return true;
        }
    }

    public static Cat Null
    {
        get
        {
            Cat h = new Cat();
            return h;
        }
    }

    public static Cat Parse(SqlString s)
    {
        if (s.IsNull || s.Value.ToLower().Equals("null"))
            return Null;
        Cat u = new Cat();
        // Put your code here
        return u;
    }

    [SqlFunction()]
    public static SqlString Method1(SqlString Param1)
    {
        Tiger t = new Tiger();
        SqlString s = t.FeedTheCat("");
        //Insert method code here
        return s;
    }

    public SqlString FeedTheCat(SqlString Param1)
    {
        //Insert method code here
        return "Meow";
    }
}

