reflection-method-call

Call C# methods, including private ones, using reflection.

Updated May 3, 2026
One-click install
npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill reflection-method-call-rakamenouya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflection-method-call
Source: https://github.com/RakameNouya/MR-Bab_10_and_Kel_3/tree/main/.gemini/skills/reflection-method-call
Command: npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill reflection-method-call-rakamenouya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows users to call C# methods, including private methods, by using reflection. It requires a method schema obtained via 'reflection-method-find' and supports various method types and execution options.

Core Features & Use Cases

  • Method Calling by Reflection: Execute any C# method, even private ones, with provided method schema.
  • Method Schema Requirement: Obtain method schema using 'reflection-method-find' before calling.
  • Execution Options: Supports static methods, instance methods with optional target deserialization, and main-thread/off-thread execution.
  • Use Case: Imagine you need to invoke a private method from a class within your Unity project. Use this Skill to call the method using reflection, regardless of its accessibility.

Quick Start

Use the reflection-method-call skill to call the 'GetPrivateData' method on an instance of 'ExampleClass'.

Frequently Asked Questions about reflection-method-call

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call private methods in C# using reflection?

To call private methods in C# using reflection, you need to provide a method schema and specify the target class instance. This Skill executes the invocation dynamically, bypassing standard accessibility restrictions to run private class members.

Can I execute static and instance methods dynamically in Unity?

Yes, you can execute both static and instance C# methods dynamically in Unity. The Skill provides execution options that support invoking static methods directly and instance methods with optional target deserialization.

What is a method schema and do I need it to invoke private C# class members?

A method schema is the structural blueprint required to accurately identify and invoke a target method via reflection. You must obtain this schema beforehand, typically by using a method finder tool, before calling any private or public C# class members.

How to invoke Unity instance methods off the main thread with reflection?

To invoke Unity instance methods off the main thread with reflection, you use the provided execution options alongside the required method schema. This allows dynamic method calling with optional target deserialization for flexible threading execution.

Are there limitations when using reflection to call private methods in C#?

The primary limitation when using reflection to call private methods is the strict requirement for a valid method schema to identify the target. Without first obtaining this schema, the dynamic invocation cannot be processed or executed.