public override string ToString() { #if !DNXCORE50 EnumeratorItemTypeAttribute attribute = (EnumeratorItemTypeAttribute)Attribute.GetCustomAttribute(GetType(), typeof(EnumeratorItemTypeAttribute)); #else EnumeratorItemTypeAttribute attribute = (EnumeratorItemTypeAttribute)GetType().GetTypeInfo().GetCustomAttribute(typeof(EnumeratorItemTypeAttribute)); #endif return(string.Format("generator({0})", attribute.ItemType)); }
override public string ToString() { EnumeratorItemTypeAttribute attribute = (EnumeratorItemTypeAttribute)Attribute.GetCustomAttribute(GetType(), typeof(EnumeratorItemTypeAttribute)); return(string.Format("generator({0})", attribute.ItemType)); }