-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathHostTarget.cs
More file actions
46 lines (35 loc) · 1.42 KB
/
HostTarget.cs
File metadata and controls
46 lines (35 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.Reflection;
using Microsoft.ClearScript.Util;
namespace Microsoft.ClearScript
{
internal abstract class HostTarget
{
public abstract Type Type { get; }
public abstract object Target { get; }
public abstract object InvokeTarget { get; }
public abstract object DynamicInvokeTarget { get; }
public abstract HostTargetFlags GetFlags(IHostContext context);
public virtual string[] GetAuxMethodNames(IHostContext context, BindingFlags bindFlags)
{
return ArrayHelpers.GetEmptyArray<string>();
}
public virtual string[] GetAuxPropertyNames(IHostContext context, BindingFlags bindFlags)
{
return ArrayHelpers.GetEmptyArray<string>();
}
public virtual bool TryInvokeAuxMember(IHostContext context, string name, BindingFlags invokeFlags, object[] args, object[] bindArgs, out object result)
{
result = null;
return false;
}
public virtual bool TryInvoke(IHostContext context, BindingFlags invokeFlags, object[] args, object[] bindArgs, out object result)
{
result = null;
return false;
}
public abstract Invocability GetInvocability(IHostContext context, BindingFlags bindFlags, bool ignoreDynamic);
}
}