passing fields collection into assembly method

Viewed 838

I have an SSRS 2008 R2 report with some custom code that operates on multiple fields from the dataset. To simplify calling it (two parameters instead of 8), I pass the Fields collection into the function like:

Public Function BPLatest(whichBP as String, Fields as Fields) as Integer

Since I just realized I need that code in another report, I thought I could create a custom assembly in C# 2010 Express, rather than cutting-and-pasting it. However, the searching I've done to this point leads me to believe that I can't use the Fields collection in an assembly, even passed in as above. Is this actually the case? If not, what's the proper syntax to use?

1 Answers
Related