Bridge.React.Analyser.DynamicChildrenUniqueIdWorkaroundAnalyser.IsAnyOrUnionReactElementOrStringArray C# (CSharp) Method

IsAnyOrUnionReactElementOrStringArray() private static method

private static IsAnyOrUnionReactElementOrStringArray ( ITypeSymbol type ) : bool
type ITypeSymbol
return bool
		private static bool IsAnyOrUnionReactElementOrStringArray(ITypeSymbol type)
		{
			if (type == null)
				throw new ArgumentNullException(nameof(type));

			var arrayType = type as IArrayTypeSymbol;
			if (arrayType == null)
				return false;
			var elementType = arrayType.ElementType as INamedTypeSymbol;
			return (elementType != null) && (elementType.Arity == 2) && (IsBridgeClass(elementType, "Any") || IsBridgeClass(elementType, "Union"));
		}