Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kimmax109407yIf the default .Clear() isn't there for whatever reason, make it at least an extension method
public static class Extensions
{
public static List<T> Clear (this List<T> target)
{
return new List<T>();
}
}
Dunno if that works correctly, but it should like similar to this. After that you can just call .Clear() again -
lxmcf198047y@BindView doesn't work, hasn't been ported into the kernel -,-
@Kimmax thanks! Didn't actually think to do that -
lxmcf198047y@BindView yeah, Cosmos is an effort to build an OS using the .net framework, but they have to essentially port almost everything :-(
Related Rants
So COSMOs hasn't implemented a proper clearing method for lists... Having to do this to clear my output list hurts!
rant
lists
cosmos
c#