Mono.Debugger.Languages.Mono.MonoStringType.CreateInstance C# (CSharp) Method

CreateInstance() private method

private CreateInstance ( System.Thread thread, object obj ) : TargetFundamentalObject
thread System.Thread
obj object
return TargetFundamentalObject
        internal override TargetFundamentalObject CreateInstance(Thread thread, object obj)
        {
            string str = obj as string;
                        if (str == null)
                                throw new ArgumentException ();

            if (!thread.CurrentFrame.Language.IsManaged)
                throw new TargetException (TargetError.InvalidContext);

                        TargetAddress retval = thread.CallMethod (
                CreateString, TargetAddress.Null, 0, 0, str);
                        TargetLocation location = new AbsoluteTargetLocation (retval);
                        return new MonoStringObject (this, location);
        }