CQRSMicroservices.ServiceFabric.QueryModelBuilderService.ServiceEventSource.SizeInBytes C# (CSharp) Method

SizeInBytes() private method

private SizeInBytes ( string s ) : int
s string
return int
        private int SizeInBytes(string s)
        {
            if (s == null)
            {
                return 0;
            }
            else
            {
                return (s.Length + 1) * sizeof(char);
            }
        }
#endif