public static void SetEntryPoint(CompilerContext context, Method method)
{
if (null == method)
{
throw new ArgumentNullException("method");
}
Method current = GetEntryPoint(context);
if (null != current)
{
throw CompilerErrorFactory.MoreThanOneEntryPoint(method);
}
context.Properties[EntryPointKey] = method;
}