private void LinkVector(IType type, ICustomAttribute attr) { var vectorType = type.Data as VectorType; if (vectorType != null) { return; } string param = VectorType.GetVectorParam(attr); if (param == null) { return; } var paramType = FindType(param); if (paramType == null) { throw new InvalidOperationException(string.Format("Unable to find Vector param type: {0}", param)); } vectorType = new VectorType(type, paramType); type.Data = vectorType; }