public virtual void Visit(PropertyParameterCollection parameters)
 {
     for (int i = 0; i < parameters.Count; i++)
     {
         Visit(parameters[i]);
     }
 }
 public void CopyTo(PropertyParameterCollection copy)
 {
     foreach (var item in this)
     {
         copy.Add(item);
     }
 }
Beispiel #3
0
 public virtual void Build(PropertyParameterCollection parameters)
 {
     for (int i = 0; i < parameters.Count; i++)
     {
         var parameter = parameters[i];
         if (Build(ref parameter))
         {
             parameters[i] = parameter;
         }
     }
 }
Beispiel #4
0
        protected void LoadSignature(IBinaryAccessor accessor, ModuleImage image)
        {
            byte sigType = accessor.ReadByte();

            if ((sigType & Metadata.SignatureType.Property) != Metadata.SignatureType.Property)
            {
                throw new CodeModelException(string.Format(SR.AssemblyLoadError, _module.Location));
            }

            _hasThis = ((sigType & Metadata.SignatureType.HasThis) == Metadata.SignatureType.HasThis);

            int paramCount = accessor.ReadCompressedInteger();

            _returnType = TypeSignature.Load(accessor, _module);

            _parameters = new PropertyParameterCollection(this);
            _parameters.Load(accessor, paramCount);
        }