…Or at least a class I didn’t know existed, but let’s see if I’m right or not. The class resides in the System.Web.UI namespace and is used various places in ASP.NET. Among those places are the inner workings of the ViewState. The reason you (might) don’t know the class could be because of its not so strongly typed nature. In other words, if you want to use the class you have to do a lot of boxing and casting.

As you haven’t already guessed, I’m talking about the Triplet class. I’ve thought about how to use the class instead of creating my own type-safe little structures, and I came up with nothing. I don’t know what to do with the class.

Here is how you could use it

Triplet triplet = new Triplet();

triplet.First = "string";

triplet.Second = 34;

triplet.Third = DateTime.Now;

If you have any good ideas to how you would use this class, please let me know. My own imagination is limited when it comes to the Triplet class.

>

Comments


Comments are closed