Пример #1
0
        /// <summary>
        /// Factory function for the scope.
        /// </summary>
        public static ConsoleAuthoringScope CreateScope(ParseRequest request)
        {
            if (null == request)
            {
                return(null);
            }
            ConsoleAuthoringScope scope = null;

            if (request.Reason == ParseReason.MemberSelect ||
                request.Reason == ParseReason.DisplayMemberList ||
                request.Reason == ParseReason.CompleteWord)
            {
                scope = new ConsoleAuthoringScope();
            }
            return(scope);
        }
 /// <summary>
 /// Factory function for the scope.
 /// </summary>
 public static ConsoleAuthoringScope CreateScope(ParseRequest request)
 {
     if (null == request)
     {
         return null;
     }
     ConsoleAuthoringScope scope = null;
     if (request.Reason == ParseReason.MemberSelect ||
         request.Reason == ParseReason.DisplayMemberList ||
         request.Reason == ParseReason.CompleteWord)
     {
         scope = new ConsoleAuthoringScope();
     }
     return scope;
 }