Cosmos/source/Indy.IL2CPU/Compiler/Old/AssemblyCompiler.ServiceProvider.cs
2009-06-13 14:28:05 +00:00

18 lines
No EOL
475 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Compiler.Old
{
partial class AssemblyCompiler: Indy.IL2CPU.IL.IServiceProvider
{
public T GetService<T>()
{
if(typeof(T) == typeof(IMetaDataInfoService)){
return (T)(object)this;
}
throw new Exception("Service '" + typeof(T).FullName + "' not found!");
}
}
}