public IEnumerable BytesToIEnumerableConversion(CallSite site, Bytes value) { if (value == null) { return(((CallSite <Func <CallSite, Bytes, IEnumerable> >)site).Update(site, value)); } return(PythonOps.BytesIntEnumerable(value)); }
public IEnumerable ObjectToIEnumerableConversion(CallSite site, object value) { if (value != null) { if (value is string) { return(PythonOps.StringEnumerable((string)value)); } else if (value.GetType() == typeof(Bytes)) { return(PythonOps.BytesIntEnumerable((Bytes)value)); } } return(((CallSite <Func <CallSite, object, IEnumerable> >)site).Update(site, value)); }