本文整理匯總了C#中ProtoCore.FunctionGroup.CopyPublic方法的典型用法代碼示例。如果您正苦於以下問題:C# FunctionGroup.CopyPublic方法的具體用法?C# FunctionGroup.CopyPublic怎麽用?C# FunctionGroup.CopyPublic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProtoCore.FunctionGroup
的用法示例。
在下文中一共展示了FunctionGroup.CopyPublic方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IsFunctionGroupAccessible
private bool IsFunctionGroupAccessible(RuntimeCore runtimeCore, ref FunctionGroup funcGroup)
{
bool methodAccessible = true;
if (classScope != Constants.kGlobalScope)
{
// If last stack frame is not member function, then only public
// functions are acessible in this context.
int callerci, callerfi;
runtimeCore.CurrentExecutive.CurrentDSASMExec.GetCallerInformation(out callerci, out callerfi);
if (callerci == Constants.kGlobalScope ||
(classScope != callerci && !runtimeCore.DSExecutable.classTable.ClassNodes[classScope].IsMyBase(callerci)))
{
bool hasFEP = funcGroup.FunctionEndPoints.Count > 0;
FunctionGroup visibleFuncGroup = new FunctionGroup();
visibleFuncGroup.CopyPublic(funcGroup.FunctionEndPoints);
funcGroup = visibleFuncGroup;
if (hasFEP && funcGroup.FunctionEndPoints.Count == 0)
{
methodAccessible = false;
}
}
}
return methodAccessible;
}