GetSemanticOperationHandler() public method

public GetSemanticOperationHandler ( ) : SemanticOperationHandler
return SemanticOperationHandler
Example #1
0
        public SemanticOperationHandler GetSemanticOperationHandler()
        {
            SemanticOperationHandler result = this.semanticOperationHandler;

            if (result == null)
            {
                ElementState parentES = Parent;
                if (parentES != null && parentES is SemanticOperation)
                {
                    SemanticOperation parent = (SemanticOperation)parentES;
                    result = parent.GetSemanticOperationHandler();
                    this.semanticOperationHandler = result;
                }
            }
            return(result);
        }