Esempio n. 1
0
 /// <inheritdoc/>
 protected override int CalculateSize(T?value)
 {
     if (value.HasValue)
     {
         return(_codeGenerator.CalculateSize(value.Value));
     }
     else
     {
         return(0);
     }
 }
 /// <inheritdoc/>
 protected override int CalculateSize()
 {
     return(_CodeGenerator.CalculateSize(SourceValue));
 }
 /// <inheritdoc/>
 protected override int CalculateSize()
 {
     return(_CodeGenerator.CalculateSize((TValue)Convert.ChangeType(SourceValue, typeof(TValue))));
 }