NHibernate.Lob.XlobType.GetValue C# (CSharp) Method

GetValue() protected method

protected GetValue ( object dataObj ) : object
dataObj object
return object
		protected override object GetValue(object dataObj)
		{
			if (compression == null)
			{
				string str = dataObj as string;
				return str == null ? null : new StringXlob(str);
			}
			else
			{
				byte[] data = dataObj as byte[];
				if (data == null) return null;
				return new CompressedXlob(data, compression);
			}
		}