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(); }
public EnumDocItem(DocItem parent, ITypeDefinition type, XElement documentation) : base(parent, type, documentation) { }
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(); }
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; }