Ecologylab.BigSemantics.Actions.SemanticOperation.Register C# (CSharp) Method

Register() public static method

Register a user defined semantic operation to the system. This method should be called before compiling or using the MetaMetadata repository.

To override an existing semantic operation, subclass your own semantic operation class, use the same tag (indicated in @simpl_tag), and override perform(). @param semanticOperationClass @param canBeNested indicates if this semantic operation can be nested by other semantic operations, like for or if. if so, it will also be registered to NestedSemanticOperationTranslationScope.

public static Register ( Type semanticOperationClasses ) : void
semanticOperationClasses System.Type
return void
        public static void Register(Type[] semanticOperationClasses)
        {
            foreach (Type semanticOperationClass in semanticOperationClasses)
            {
                SemanticOperationTranslationScope.Get().AddTranslation(semanticOperationClass);
            }
        }