ICSharpCode.NRefactory.MonoCSharp.Nullable.NullableInfo.GetValue C# (CSharp) Method

GetValue() public static method

public static GetValue ( TypeSpec nullableType ) : MethodSpec
nullableType TypeSpec
return MethodSpec
		public static MethodSpec GetValue (TypeSpec nullableType)
		{
			return (MethodSpec) MemberCache.FindMember (nullableType,
				MemberFilter.Method ("get_Value", 0, ParametersCompiled.EmptyReadOnlyParameters, null), BindingRestriction.None);
		}

Usage Example

Example #1
0
        public override void Emit(EmitContext ec)
        {
            var call = new CallEmitter();

            call.InstanceExpression = Child;
            call.EmitPredefined(ec, NullableInfo.GetValue(Child.Type), null);
        }
All Usage Examples Of ICSharpCode.NRefactory.MonoCSharp.Nullable.NullableInfo::GetValue