コード例 #1
0
ファイル: Scope.cs プロジェクト: divyang4481/IIOPNet
        /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
        public void addTypeDef(String definedType)
        {
            if (m_symbols.ContainsKey(definedType))
            {
                throw new ScopeException("typedef not possible, this type already exists");
            }
            Symbol newSymbol = new SymbolTypedef(definedType, this);

            m_symbols[definedType] = newSymbol;
        }
コード例 #2
0
ファイル: Scope.cs プロジェクト: JnS-Software-LLC/iiop-net
 /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
 public void addTypeDef(String definedType) {
     if (m_symbols.ContainsKey(definedType)) {
         throw new ScopeException("typedef not possible, this type already exists");
     }
     Symbol newSymbol = new SymbolTypedef(definedType, this);
     m_symbols[definedType] = newSymbol;
 }