Exemple #1
0
        public bool TryDefine(string name, TypeBase type, out FrameResource resource)
        {
            resource = null;

            if (IsDefined(name))
                return false;

            resource = Frame.Allocate(type, false);

            _identifiers.Add(name, resource);
            return true;
        }
Exemple #2
0
        public bool TryDefine(string name, TypeBase type, out FrameResource resource)
        {
            resource = null;

            if (IsDefined(name))
            {
                return(false);
            }

            resource = Frame.Allocate(type, false);

            _identifiers.Add(name, resource);
            return(true);
        }