vanattab / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Provide a public version of SizeOfFormatElement #761

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A function like SlimDX.Utilities.SizeOfFormatElement is often useful; 
unfortunately, the Utilities class is private, so there's no external access.

Yes, the function is trivial; still, it could've been public. (I guess the 
other members of Utilities are really internal to SlimDX, so not really sure as 
to where the function can be placed).

Original issue reported on code.google.com by arseny.k...@gmail.com on 11 Dec 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Yeah, I don't really know where to put it either.

Original comment by Mike.Popoloski on 22 Jan 2011 at 12:12

GoogleCodeExporter commented 9 years ago
So there isn't really any good place to put this, and additionally it'd have to 
be adapted to take a managed enum instead of the native one like it does now. 
It's also easy to rip out of the code and modify if you really need it. 

If we could use extension methods I'd add it to the enum itself, but we can't 
since this is .NET 2.0., so I'm not going to make this public.

Original comment by Mike.Popoloski on 13 Jun 2011 at 2:58