コード例 #1
0
ファイル: vector.cs プロジェクト: leculver/WinDbgCs
 /// <summary>
 /// Initializes a new instance of the <see cref="vector"/> class.
 /// </summary>
 /// <param name="variable">The variable.</param>
 /// <exception cref="WrongCodeTypeException">std::vector</exception>
 public vector(Variable variable)
 {
     instance = typeSelector.SelectType(variable);
     if (instance == null)
     {
         throw new WrongCodeTypeException(variable, nameof(variable), "std::vector");
     }
 }
コード例 #2
0
ファイル: unordered_map.cs プロジェクト: heruix/WinDbgCs
 /// <summary>
 /// Initializes a new instance of the <see cref="unordered_map{TKey, TValue}"/> class.
 /// </summary>
 /// <param name="variable">The variable.</param>
 public unordered_map(Variable variable)
 {
     instance = typeSelector.SelectType(variable);
     if (instance == null)
     {
         throw new WrongCodeTypeException(variable, nameof(variable), "std::unordered_map");
     }
 }
コード例 #3
0
ファイル: shared_ptr.cs プロジェクト: heruix/WinDbgCs
 /// <summary>
 /// Initializes a new instance of the <see cref="shared_ptr{T}"/> class.
 /// </summary>
 /// <param name="variable">The variable.</param>
 public shared_ptr(Variable variable)
 {
     // Verify code type
     instance = typeSelector.SelectType(variable);
     if (instance == null)
     {
         throw new WrongCodeTypeException(variable, nameof(variable), "std::shared_ptr");
     }
 }
コード例 #4
0
ファイル: basic_string.cs プロジェクト: wy182000/PadAnalyzer
 /// <summary>
 /// Initializes a new instance of the <see cref="basic_string"/> class.
 /// </summary>
 /// <param name="variable">The variable.</param>
 /// <exception cref="WrongCodeTypeException">std::basic_string</exception>
 public basic_string(Variable variable)
     : base(variable)
 {
     instance = typeSelector.SelectType(variable);
     if (instance == null)
     {
         throw new WrongCodeTypeException(variable, nameof(variable), "std::basic_string");
     }
 }
コード例 #5
0
ファイル: path.cs プロジェクト: sdmaclea/SharpDebug
 /// <summary>
 /// Initializes a new instance of the <see cref="path"/> class.
 /// </summary>
 /// <param name="variable">The variable.</param>
 /// <exception cref="WrongCodeTypeException">std::path</exception>
 public path(Variable variable)
     : base(variable)
 {
     instance = typeSelector.SelectType(variable);
     if (instance == null)
     {
         throw new WrongCodeTypeException(variable, nameof(variable), "std::filesystem::path");
     }
 }
コード例 #6
0
ファイル: unordered_map.cs プロジェクト: sdmaclea/SharpDebug
        /// <summary>
        /// Initializes a new instance of the <see cref="unordered_map{TKey, TValue}"/> class.
        /// </summary>
        /// <param name="variable">The variable.</param>
        public unordered_map(Variable variable)
            : base(variable)
        {
            instance = typeSelector.SelectType(variable);
            if (instance == null)
            {
                throw new WrongCodeTypeException(variable, nameof(variable), "std::unordered_map");
            }

            var a = System.Linq.Enumerable.ToArray(this);
        }