Example #1
0
 static IEnumerable <int> GetInfoDependencies(TypePositionInfo info)
 {
     // A parameter without a managed index cannot have any dependencies.
     if (info.ManagedIndex == TypePositionInfo.UnsetIndex)
     {
         return(Array.Empty <int>());
     }
     return(MarshallerHelpers.GetDependentElementsOfMarshallingInfo(info.MarshallingAttributeInfo)
            .Select(static info => GetInfoIndex(info)).ToImmutableArray());