I have a weird bug im running into.
I am getting: Additional information: Sequence contains no elements
and its being tripped on string sheetNum = "";
I usually get this error when a ling function can't find anything so I am completely lost on why this is getting tripped off here.
Also, not sure if this is a result of my updating my Visual Studio IDE recently.
here is the code block that its in. its a button for winforms:
private void createSheetButton_Click(object sender, EventArgs e)
{
string sheetNum = ""; // <--- getting error here
bool sheetNumExistsBool = false;
if (colSheetsList.Count() > 0)
{
sheetNum = colSheetsList.First().get_Parameter(BuiltInParameter.SHEET_NUMBER).AsString();
sheetNumExistsBool = colSheetsList.Any(x => x.get_Parameter(BuiltInParameter.SHEET_NUMBER).AsString() == sheetNumTextBox.Text);
}
//... more code here
}
question from:
https://stackoverflow.com/questions/65849616/string-tripping-additional-information-sequence-contains-no-elements 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…