public RSMethodInfo(RSMemberAttribute inAttribute, MethodInfo inMethod) : base(inAttribute, inMethod) { m_MethodInfo = inMethod; m_Parameters = inMethod.GetParameters(); m_CachedArguments = new object[m_Parameters.Length]; }
public RSInfo(RSMemberAttribute inAttribute, MemberInfo inMember) { Id = inAttribute.Id; IdHash = ScriptUtils.Hash(Id); Name = inAttribute.Name ?? inMember.Name; Description = inAttribute.Description ?? string.Empty; Icon = inAttribute.Icon ?? string.Empty; if (inMember is Type) { OwnerType = InternalScriptUtils.GetLikelyBindingType((Type)inMember); } else { OwnerType = InternalScriptUtils.GetLikelyBindingType(inMember.DeclaringType); } }