mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2025-12-18 01:09:42 +05:00
Method boilerplate code / minor re-factoring
This commit is contained in:
41
Il2CppInspector/Reflection/ParameterInfo.cs
Normal file
41
Il2CppInspector/Reflection/ParameterInfo.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
Copyright 2017 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com
|
||||
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Il2CppInspector.Reflection
|
||||
{
|
||||
public class ParameterInfo
|
||||
{
|
||||
// Information/flags about the parameter
|
||||
public ParameterAttributes Attributes { get; }
|
||||
|
||||
// TODO: CustomAttributes
|
||||
|
||||
// True if the parameter has a default value
|
||||
public bool HasDefaultValue { get; }
|
||||
|
||||
// Default value for the parameter
|
||||
public object DefaultValue { get; }
|
||||
|
||||
public bool IsIn { get; }
|
||||
public bool IsOptional { get; }
|
||||
public bool IsOut { get; }
|
||||
|
||||
// The member in which the parameter is defined
|
||||
public MemberInfo Member { get; }
|
||||
|
||||
// Name of parameter
|
||||
public string Name { get; }
|
||||
|
||||
// Type of this parameter
|
||||
public TypeInfo ParameterType { get; }
|
||||
|
||||
// Zero-indexed position of the parameter in parameter list
|
||||
public int Position { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user