DescriptorPool.cs 732 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. namespace Google.ProtocolBuffers.Descriptors {
  3. /// <summary>
  4. /// Contains lookup tables containing all the descriptors defined in a particular file.
  5. /// </summary>
  6. internal class DescriptorPool {
  7. IDictionary<string, object> byName;
  8. /// <summary>
  9. /// Finds a symbol of the given name within the pool.
  10. /// </summary>
  11. /// <typeparam name="T">The type of symbol to look for</typeparam>
  12. /// <param name="name">Name to look up</param>
  13. /// <returns>The symbol with the given name and type,
  14. /// or null if the symbol doesn't exist or has the wrong type</returns>
  15. internal T FindSymbol<T>(string name) where T : class {
  16. return default(T);
  17. }
  18. }
  19. }