~ruther/csharp-dll-injector

ref: a5cb4605d7b28142f2ae1ab9d8e0f7091530e7e5 csharp-dll-injector/DllUtils/Attributes/ParamPositionAttribute.cs -rw-r--r-- 624 bytes
a5cb4605 — František Boháček Add DllUtils 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DllUtils.Attributes
{
    public enum ParamType
    {
        NotSpecified,
        Reference,
        Value
    }

    [AttributeUsage(AttributeTargets.Field)]
    public class ParamPositionAttribute : Attribute
    {
        public ParamPositionAttribute(int index, ParamType paramType = ParamType.NotSpecified)
        {
            Index = index;
            ParamType = paramType;
        }

        public ParamType ParamType { get; set; }

        public int Index { get; set; }
    }
}
Do not follow this link