|
using System;
using System.Collections.Generic;
using Microsoft.Scripting.Actions;
using Microsoft.Scripting.Generation;
using Microsoft.Scripting.Runtime;
namespace ADT.DLR
{
/// <summary>
/// Binder for AST DLR test.
/// </summary>
public class ADTBinder : DefaultBinder
{
/// <summary>
/// Constructor, call parent.
/// </summary>
/// <param name="manager">script domaine manager</param>
public ADTBinder(ScriptDomainManager manager)
: base(manager)
{
}
public override bool CanConvertFrom(Type fromType, Type toType, NarrowingLevel level)
{
return toType.IsAssignableFrom(fromType);
}
public override bool PreferConvert(Type t1, Type t2)
{
throw new NotImplementedException();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Lionel is a software architect at
C2S, a software company based in France and subsidiary of the Bouygues group.
Lionel is also the author of
Liogo, an open-source Logo compiler for .NET.
Lionel is a contributor of
DotNetGuru and
Dr.Dobb's Journal.
Lionel is President and co-founder of
OLPC France.