File: Expressions\ITypeConverter.cs
Web Access
Project: src\src\sdk\src\TemplateEngine\Microsoft.TemplateEngine.Core\Microsoft.TemplateEngine.Core.csproj (Microsoft.TemplateEngine.Core)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Microsoft.TemplateEngine.Core.Expressions
{
    public interface ITypeConverter
    {
        ITypeConverter Register<T>(TypeConverterDelegate<T> converter);

        bool TryConvert<T>(object? source, out T? result);

        bool TryCoreConvert<T>(object? source, out T? result);
    }
}