Lines Matching defs:extension
61 /// Creates a new empty extension registry
74 /// Gets the total number of extensions in this extension registry
83 internal bool ContainsInputField(uint lastTag, Type target, out Extension extension)
85 return extensions.TryGetValue(new ObjectIntPair<Type>(target, WireFormat.GetTagFieldNumber(lastTag)), out extension);
89 /// Adds the specified extension to the registry
91 public void Add(Extension extension)
93 ProtoPreconditions.CheckNotNull(extension, nameof(extension));
95 extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension);
105 foreach (var extension in extensions)
107 Add(extension);
120 /// Gets whether the extension registry contains the specified extension
148 Extension extension = array[i];
149 extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension);
163 /// Removes the specified extension from the set
165 /// <param name="item">The extension</param>
166 /// <returns><c>true</c> if the extension was removed, otherwise <c>false</c></returns>