当前位置: 首页>>代码示例>>C#>>正文


C# IDataReader.ReadString方法代码示例

本文整理汇总了C#中IDataReader.ReadString方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.ReadString方法的具体用法?C# IDataReader.ReadString怎么用?C# IDataReader.ReadString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IDataReader的用法示例。


在下文中一共展示了IDataReader.ReadString方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TextOverlay

 public TextOverlay(IDataReader state)
     : base(state)
 {
     addInterface(typeof(IRenderable2D));
     addInterface(typeof(ITextRenderable));
     m_fontName = state.ReadString();
     m_text = state.ReadString();
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:8,代码来源:TextOverlay.cs

示例2: Text3DBillboard

 public Text3DBillboard(IDataReader state)
     : base(state)
 {
     addInterface(typeof(ITextRenderable));
     m_fontName = state.ReadString();
     m_text = state.ReadString();
     m_offset.X = state.ReadSingle(); m_offset.Y = state.ReadSingle(); m_offset.Z = state.ReadSingle();
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:8,代码来源:Text3DBillboard.cs

示例3: Renderable3D

 public Renderable3D(IDataReader state)
     : base(state)
 {
     m_modelName = state.ReadString();
     m_materialName = state.ReadString();
     m_scale.X = state.ReadSingle();
     m_scale.Y = state.ReadSingle();
     m_scale.Z = state.ReadSingle();
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:9,代码来源:Renderable3D.cs

示例4: NavigationMeshElement

        public NavigationMeshElement(IDataReader state, NavigationMeshService manager)
            : base(state)
        {
            m_manager = manager;

            m_MeshName = state.ReadString();
        }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:7,代码来源:NavigationMeshElement.cs

示例5: InputContext

        public InputContext(IDataReader state, IInputManager inputManager, Core core)
            : base(state)
        {
            m_lastKeybaord = state.ReadBoolean();
            m_lastMouse = state.ReadBoolean();
            m_lastTouch = state.ReadBoolean();
            m_lastGamepad = state.ReadBoolean();

            Enum.TryParse(state.ReadString(), out m_playerIndex);
            // keyboard
            int numInputMappings = state.ReadInt32();
            for (int i = 0; i < numInputMappings; ++i)
            {
                String key = state.ReadString();
                Keys k;
                if (Enum.TryParse(key, true, out k))
                {
                    m_keyMappings.Add(k, new InputMapping(state, core));
                }
                else
                {
                    new InputMapping(state,core);
                }
            }

            //gamepad
            int numGamepadBindings = state.ReadInt32();
            for (int i = 0; i < numGamepadBindings; ++i)
            {
                String button = state.ReadString();
                Buttons b;
                if (Enum.TryParse(button,true,out b))
                {
                    m_gamepadMappings.Add(b, new InputMapping(state, core));
                }
                else
                {
                    new InputMapping(state, core);
                }
            }

            m_inputManager = inputManager;
        }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:43,代码来源:InputContext.cs

示例6: doHandleMessage

 public override void doHandleMessage(IDataReader msg)
 {
     XnaScrapId msgId = new XnaScrapId(msg);
     if (PrintId == msgId)
     {
         String message = msg.ReadString();
         System.Console.WriteLine(message);
     }
     base.doHandleMessage(msg);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:10,代码来源:ConsoleWriter.cs

示例7: doHandleMessage

 public override void doHandleMessage(IDataReader msg)
 {
     XnaScrapId msgId = new XnaScrapId(msg);
     if (msgId == CHANGE_MODEL_MSG_ID)
     {
         m_modelName = msg.ReadString();
         setModel();
     }
     else if (msgId == CHANGE_MATERIAL_MSG_ID)
     {
         m_materialName = msg.ReadString();
         setMaterial();
     }
     else if (msgId == CHANGE_SCALE_MSG_ID)
     {
         m_scale.X = msg.ReadSingle();
         m_scale.Y = msg.ReadSingle();
         m_scale.Z = msg.ReadSingle();
     }
     base.doHandleMessage(msg);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:21,代码来源:Renderable3D.cs

示例8: Deserialize

		public override void Deserialize(IDataReader reader, SemVersion archiveVersion)
		{
			Value = reader.ReadString();
		}
开发者ID:Mikescher,项目名称:GridDominance,代码行数:4,代码来源:DataFileStringWrapper.cs

示例9: InputMapping

 public InputMapping(IDataReader state, Core core)
 {
     m_core = core;
     m_bIsPressed = state.ReadBoolean();
     m_downMsg = new XnaScrapId(state);
     m_upMsg = new XnaScrapId(state);
     m_targetId = new XnaScrapId(state);
     m_message = state.ReadString();
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:9,代码来源:InputContext.cs

示例10: Read

 /// <summary>
 /// Reads the string
 /// </summary>
 /// <param name="reader">reader to read from</param>
 public void Read(IDataReader reader)
 {
     Data = reader.ReadString();
 }
开发者ID:kijungs,项目名称:incubator-reef,代码行数:8,代码来源:WritableString.cs

示例11: deserialise

 public void deserialise(IDataReader reader)
 {
     reader.ReadString();
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:4,代码来源:ParameterSequence.cs

示例12: doHandleMessage

 public override void doHandleMessage(IDataReader msg)
 {
     XnaScrapId msgId = new XnaScrapId(msg);
     if (msgId == CHANGE_TEXT_ID)
     {
         m_text = msg.ReadString();
     }
     base.doHandleMessage(msg);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:9,代码来源:TextOverlay.cs

示例13: doHandleMessage

 public override void doHandleMessage(IDataReader msg)
 {
     XnaScrapId msgId = new XnaScrapId(msg);
     if (msgId == CHANGE_TEXTURE_MSG_ID)
     {
         m_materialName = msg.ReadString();
         setTexture(m_materialName);
     }
     base.doHandleMessage(msg);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:10,代码来源:Renderable2D.cs


注:本文中的IDataReader.ReadString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。