Пример #1
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region IApiVisitor Implementation
        public void VisitApiEnumerationValue(IApiEnumerationValue apiEnumerationValue, int depth)
        {
            Contract.Requires(apiEnumerationValue != null);

            this.AddIndentToString(depth);

            var description = apiEnumerationValue.ToString();

            this.AddDescriptionToString(description);
        }
 public bool TryGetApiEnumerationValueByClrOrdinal(int clrOrdinal, out IApiEnumerationValue apiEnumValue)
 {
     return(this.ApiEnumerationValueByClrValueDictionary.TryGetValue(clrOrdinal, out apiEnumValue));
 }
        public bool TryGetApiEnumerationValueByClrName(string clrName, out IApiEnumerationValue apiEnumValue)
        {
            Contract.Requires(clrName != null);

            return(this.ApiEnumerationValueByClrNameDictionary.TryGetValue(clrName, out apiEnumValue));
        }