ICSharpCode.NRefactory.Utils.FastSerializer.IsReferenceOrContainsReferences C# (CSharp) Method

IsReferenceOrContainsReferences() static private method

static private IsReferenceOrContainsReferences ( Type type ) : bool
type System.Type
return bool
		static bool IsReferenceOrContainsReferences(Type type)
		{
			if (!type.IsValueType)
				return true;
			if (type.IsPrimitive)
				return false;
			foreach (FieldInfo field in GetSerializableFields(type)) {
				if (IsReferenceOrContainsReferences(field.FieldType))
					return true;
			}
			return false;
		}
		#endregion