ConvertToBlobExpression

What it is

ConvertToBlobExpression returns a Blob, as a result of a conversion from another type, for example from a string to a Blob.

Code example

public StringProperty ExampleString => StringProperty(description: "string example");
public BlobProperty ExampleBlob => BlobProperty(description: "blob example");

public IMethodCall AssignBlob()
{
	return Method(() => new Body
	{
        ExampleBlob.Assign(ExampleString.ConvertToBlob())
	});
}

 

Explanation of the example

In this example, the LINQ expression ConvertToBlob converts the String ExampleString into a Blob. It is assigned to ExampleBlob.