protected override bool InnerNeedsInference(Generator generator, TypeReference inferredHint) { if ((inferredHint != null) && (!(inferredHint is NullableTypeReference))) { inferredHint = new NullableTypeReference(inferredHint); } return(parent.NeedsInference(generator, inferredHint)); }
public override bool Equals(object obj) { NullableTypeReference ntr = obj as NullableTypeReference; if (ntr == null) { return(false); } return(Parent.Equals(ntr.Parent)); }
public override void Prepare(Generator generator, TypeReference inferredType) { base.Prepare(generator, inferredType); if ((inferredType != null) && (!(inferredType is NullableTypeReference))) { inferredType = new NullableTypeReference(inferredType); } parent.Prepare(generator, inferredType); type = parent.TypeReference; if (type is NullableTypeReference) { type = ((NullableTypeReference)type).Parent; } }
public override void Prepare(Generator generator, TypeReference inferredType) { base.Prepare(generator, inferredType); if (inferredType != null) { if (inferredType is NullableTypeReference) { suppressed = true; } else { inferredType = new NullableTypeReference(inferredType); } } parent.Prepare(generator, inferredType); type = parent.TypeReference; if (type is NullableTypeReference) { type = ((NullableTypeReference)type).Parent; } }