Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created May 27, 2014 22:43
Show Gist options
  • Save srkirkland/f286750e19b90b1f2185 to your computer and use it in GitHub Desktop.
Save srkirkland/f286750e19b90b1f2185 to your computer and use it in GitHub Desktop.
split large binary array into multiple fields
var props = base.WriteEntity(operationContext);
props.Remove(SplitProperty);
for (int i = 0; i <= Summary.Length / SplitSize; i++)
{
props.Add(SplitProperty + i, new EntityProperty(Summary.Skip(i).Take(SplitSize).ToArray()));
}
return props;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment