Exemple #1
0
        public ILocalMember Add(string name, IExpression initializationExpression, LocalTypingKind typingMethod = LocalTypingKind.Implicit)
        {
            if (typingMethod != LocalTypingKind.Implicit && typingMethod != LocalTypingKind.Dynamic)
            {
                throw new ArgumentOutOfRangeException("typingMethod");
            }
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            var result = new LocalMember(name, this.Parent, typingMethod)
            {
                InitializationExpression = initializationExpression
            };

            this._Add(result.UniqueIdentifier, result);
            return(result);
        }
Exemple #2
0
 public ReferenceExpression(LocalMember owner)
 {
     this.owner = owner;
 }