Sha256: 312581cc1d4027e678896a7abbdb68f18fa44024c1a7e7daeada45fcf49c952a

Contents?: true

Size: 848 Bytes

Versions: 7

Compression:

Stored size: 848 Bytes

Contents

using System;
using System.Reflection;

namespace Workarounds
{          
    public static class ReflectionHelper
    {

        public static PropertyInfo[] GetInstanceProperties(Type target)
        {
            return target.GetProperties(BindingFlags.Public | BindingFlags.Instance);
        }

        public static PropertyInfo[] GetClassProperties(Type target)
        {
            return target.GetProperties(BindingFlags.Public | BindingFlags.Static);
        }

        public static MethodInfo[] GetInstanceMethods(Type target)
        {
            return target.GetMethods(BindingFlags.Public | BindingFlags.Instance);
        }

        public static MethodInfo[] GetClassMethods(Type target)
        {
            return target.GetMethods(BindingFlags.Public | BindingFlags.Static);
        }

    }
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
casualjim-caricature-0.5.0 workarounds/ReflectionHelper.cs
casualjim-caricature-0.6.0 workarounds/ReflectionHelper.cs
casualjim-caricature-0.6.1 workarounds/ReflectionHelper.cs
caricature-0.6.3 workarounds/ReflectionHelper.cs
caricature-0.6.1 workarounds/ReflectionHelper.cs
caricature-0.6.0 workarounds/ReflectionHelper.cs
caricature-0.5.0 workarounds/ReflectionHelper.cs