Beispiel #1
0
 /// <summary>
 /// Creates a new ScriptScope using the default storage container
 /// </summary>
 public ScriptScope CreateScope()
 {
     return(new ScriptScope(this, _language.CreateScope()));
 }
 /// <summary>
 /// Creates a new ScriptScope whose storage contains the provided dictionary of objects
 ///
 /// Accesses to the ScriptScope will turn into get,set, and delete members against this dictionary
 /// </summary>
 public ScriptScope CreateScope(IDictionary <string, object> dictionary)
 {
     ContractUtils.RequiresNotNull(dictionary, nameof(dictionary));
     return(new ScriptScope(this, LanguageContext.CreateScope(dictionary)));
 }
        /// <summary>
        /// Creates a new ScriptScope whose storage is an arbitrary object.
        ///
        /// Accesses to the ScriptScope will turn into get, set, and delete members against the object.
        /// </summary>
        public ScriptScope CreateScope(IDynamicMetaObjectProvider storage)
        {
            ContractUtils.RequiresNotNull(storage, nameof(storage));

            return(new ScriptScope(this, LanguageContext.CreateScope(storage)));
        }
 /// <summary>
 /// Creates a new ScriptScope using the default storage container
 /// </summary>
 public ScriptScope CreateScope()
 {
     return(new ScriptScope(this, LanguageContext.CreateScope()));
 }