i have a application in Microsoft teams, and i want add channel from Visual Studio (c#). In the examples in the documentation, we can see this lines:
Channels = (ITeamChannelsCollectionPage)new List<Channel>()
{
new Channel
{
DisplayName = "Class Announcements ",
IsFavoriteByDefault = true
},
new Channel
{
DisplayName = "Homework ",
IsFavoriteByDefault = true
}
},
But if i try do that in Visual Studio i get a InvalidCastExeption

my code and Example code are equal
i think the SDK(Microsoft Graph) was updated, but documentation - not
My Microsoft.Graph SDK version - 3.9.0
PS. problem with cast type "Channel" to interface "ITeamChannelsCollectionPage"