logo
CSharp_Prog_Guide

Общие сведения об отражении

Отражение удобно использовать в следующих ситуациях.

C# DLLs

You can use Visual C# to create DLLs that are callable by other managed applications and by unmanaged code

How to: Create and Use C# DLLs

A dynamic linking library (DLL) is linked to your program at run time. To demonstrate building and using a DLL, consider the following scenario:

Example

// File: Add.cs

namespace UtilityMethods

{

public class AddClass

{

public static long Add(long i, long j)

{

return (i + j);

}

}

}