GetLength() public method

public GetLength ( ) : long
return long
Example #1
0
 public static bool IsNullOrEmpty(HttpContent content)
 {
     if (content == null)
     {
         return(true);
     }
     if (content.content is EmptyContent || (content.HasLength() && content.GetLength() == 0))
     {
         return(true);
     }
     return(false);
 }
 public static bool IsNullOrEmpty(HttpContent content)
 {
     if (content == null)
     {
         return true;
     }
     if (content.content is EmptyContent || (content.HasLength() && content.GetLength() == 0))
     {
         return true;
     }
     return false;
 }