예제 #1
0
 public object GetValue(PageVariableFragment var)
 {
     return(Args.TryGetValue(var.NameString, out object value)
         ? value
         : Page.GetValue(var) ??
            (LayoutPage != null && LayoutPage != Page.LayoutPage ? LayoutPage.GetValue(var) : null));
 }
예제 #2
0
 public object GetValue(PageVariableFragment var)
 {
     return(PageVars.TryGetValue(var.NameString, out string value)
         ? value
         : LayoutPage?.GetValue(var));
 }