using Microsoft.Crm.Sdk.Messages;
CalculateRollupFieldRequest CRF = new CalculateRollupFieldRequest
{
Target = new EntityReference("ParentEntityName", ParentEntityNameID),
FieldName
= "FieldName"
};
CalculateRollupFieldResponse
response = (CalculateRollupFieldResponse)service.Execute(CRF);