AjErl.Functions.SelfFunction.Apply C# (CSharp) Метод

Apply() публичный Метод

public Apply ( Context context, IList arguments ) : object
context Context
arguments IList
Результат object
        public object Apply(Context context, IList<object> arguments)
        {
            return Process.Current;
        }

Usage Example

Пример #1
0
        public void GetCurrentProcess()
        {
            Process process = new Process();
            Process.Current = process;
            SelfFunction func = new SelfFunction();

            var result = func.Apply(null, null);

            Assert.IsNotNull(result);
            Assert.AreSame(process, result);
        }
SelfFunction