Esempio n. 1
0
        internal T LockSignature()
        {
            if (!signatureComplete)
            {
                signatureComplete = true;
                parameters.Lock();
                OnParametersLocked();

                if (returnParameter != null)
                {
                    returnParameter.Complete(this);
                }

                foreach (ParameterGen pgen in parameters)
                {
                    if (pgen != null)
                    {
                        pgen.Complete(this);
                    }
                }
                OnParametersCompleted();
            }

            return(typedThis);
        }
Esempio n. 2
0
        void LockSignature()
        {
            if (pb == null)
            {
                indexParameters.Lock();

                pb = owner.TypeBuilder.DefineProperty(interfaceType == null ? name : interfaceType.FullName + "." + name, PropertyAttributes.None, type, indexParameters.TypeArray);
                owner.RegisterForCompletion(this);
            }
        }
Esempio n. 3
0
        void LockSignature()
        {
            if (_pb == null)
            {
                _indexParameters.Lock();

                _pb = _owner.TypeBuilder.DefineProperty(ImplementedInterface == null ? Name : ImplementedInterface.FullName + "." + Name, PropertyAttributes.None, _type, _indexParameters.TypeArray);
                _owner.RegisterForCompletion(this);
            }
        }