Advertisement
Fhernd

TipoDatoGenericoPersonalizado.cs

Jul 26th, 2016
17,719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public class TipoDatoGenericoPersonalizado<T>
  2. {
  3.     T _valor;
  4.  
  5.     public void EstablecerValor(T nuevoValor)
  6.     {
  7.         if (object.Equals(nuevoValor, _valor)
  8.         {
  9.             _valor = nuevoValor;
  10.         }
  11.     }
  12.    
  13.     // Implementación restante...
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement