I have a class with two private variables, a string, and a nullable int.
public class ReportParameterHelper
private string _specificAgentIds;
private int? _specificAgentId;
// if user selected many Agents in the report filters, parse the array of Agents to a comma-delimited string
if ( manyAgents )
_specificAgentIds = string.Join(",", agentArray.Select(x = > x.Id).ToList());
__specificAgentId = agentArray.Id;
// public property to get the correct Id or Ids
public T GetAgentIds<T>
if ( _specificAgentIds != string.empty )
Obviously this won't work because they are returning two different types, but how do I make something like this work, especially using a property. A property because I want to stay consistent with all the other existing parameters (they are all properties as well).