Пример #1
0
 public TypeParameterDocItem(DocItem parent, ITypeParameter entity, XElement documentation)
     : base(parent, entity.Name, $"{parent.FullName}.{entity.Name}", entity.Name, documentation.GetTypeParameters()?.FirstOrDefault(d => d.GetName() == entity.Name))
 {
     TypeParameter = entity;
 }
 public DelegateDocItem(DocItem parent, ITypeDefinition type, XElement documentation)
     : base(parent, type, documentation)
 {
     InvokeMethod = type.GetDelegateInvokeMethod();
     Parameters   = InvokeMethod.Parameters.Select(p => new ParameterDocItem(this, p, documentation)).ToArray();
 }
Пример #3
0
 public EnumDocItem(DocItem parent, ITypeDefinition type, XElement documentation)
     : base(parent, type, documentation)
 {
 }
Пример #4
0
 protected TypeDocItem(DocItem parent, ITypeDefinition type, XElement documentation)
     : base(parent, type, documentation)
 {
     Type           = type;
     TypeParameters = Type.TypeParameters.Select(p => new TypeParameterDocItem(this, p, documentation)).ToArray();
 }
Пример #5
0
 protected DocItem(DocItem parent, IEntity entity, XElement documentation)
     : this(parent, entity.GetIdString(), GetName(entity, FullNameAmbience), (entity is ITypeDefinition ? TypeNameAmbience : EntityNameAmbience).ConvertSymbol(entity), documentation)
 {
     _entity = entity;
 }