首页 \ 问答 \ 非托管C#与C ++ [关闭](Unmanaged C# versus C++ [closed])

非托管C#与C ++ [关闭](Unmanaged C# versus C++ [closed])

我是一个想成为游戏开发者的人,我更喜欢使用C#。 当我问到在C#中编写实时应用程序的缺点是什么时,我得到了一个重要的观点:垃圾收集及其对性能的不可预测的影响。

我的反问题是,非托管C#怎么样? 它与C ++的比较(性能方面)如何? 它是开发软件的有效选择吗?

我没有听到太多关于非托管c#和所有“非托管c#与C ++”的问题,我看到的问题没有得到答复或回答不准确。 这些问题不是堆栈溢出。

编辑:

我相信无管理的C#是“不安全代码”。


I am a wanna-be Games Developer and I prefer using C#. When I asked what the disadvantages of writing real-time applications in C# were I got 1 significant point back: Garbage Collection and the unpredictable impact it can have on performance.

My counter question is, what about Unmanaged C#? How does it compare (performance-wise) to C++? Is it a valid option for developing software?

I don't hear much about unmanaged c# and all the "unmanaged c# versus C++" questions I saw were unanswered or answered inaccurately. These questions were not on stack overflow.

EDIT:

I believe umanaged C# is "Unsafe Code".


原文:https://stackoverflow.com/questions/18971821
更新时间:2022-05-30 10:05

最满意答案

据我所知,没有办法制作一个子元素显示:无可见...所以你可以尝试使用visibility属性....缺点是,隐藏元素的宽度保持...因为其中,它使输入重叠。

希望有助于作为一个起点!

label {
  visibility: hidden;
}
input {
  left: 0;
  visibility: visible;
  position: absolute;
}
<label for="simpleQuery">
  Label Text
  <input id="simpleQuery" class="textField" (...) name="simpleQuery"></input>
</label>


As far as i know, there is no way to make a child element of display:none visible... so you can try to use the visibility attribute.... disadvantage is, that the width of the hidden element stays.. because of that, it made the input overlap.

hope that helps as a starting point!

label {
  visibility: hidden;
}
input {
  left: 0;
  visibility: visible;
  position: absolute;
}
<label for="simpleQuery">
  Label Text
  <input id="simpleQuery" class="textField" (...) name="simpleQuery"></input>
</label>

相关问答

更多
  • 不,这是不可能的。 display:none隐藏该元素,因此不会显示任何子元素。 编辑: 如果你能够从使用display切换到visibility ,这可能是你想要的。 .hide {visibility: hidden;} .reshow {visibility: visible;} 使用这种方法,您可以隐藏父元素的内容,但显示您想要的特定
  • 。 唯一需要注意的是,母公司仍将占用屏幕房地产。 只是不会显示给用户。 这可能会或可能不会破坏您正在寻找的布局。 http://jsfiddle.net/v ...
  • HTML标签是替换元素吗? 没有 您无法将生成的内容应用于替换元素。 也就是说,您不能将伪元素选择器:before或:after应用于它们。 但是我可以。 引用说你不能使用:before在更换元素 :before或:after 。 由于label 不是替换元素,因此可以使用:before和:after 。 因此,您没有看到任何与您正在阅读的文档相矛盾的内容。 在包装表单上设置行高,并在div和label上覆盖它 - 不行,这两个元素的行为不同 他们应该表现得不同。 表单内的内联框是表单的行高。 标签是内联的 ...
  • 将表单标签移到段落之外,并将边距/填充设置为零:

    Read this sentence

    Move your form tag just outside the paragraph and set margins / pa ...
  • 我是第二个Russ C的评论。 将弹出窗口移出$(document).ready,但不是全局函数。 将其指定为匿名函数并将jQuery作为参数。 不知道你想要鼠标事件的帮助。 这个出现在鼠标下方。 “title”属性只能包含纯文本,所以如果你想要的东西不那么健壮,那就去吧。 尝试这个 $(document).ready(function(){ var loremHTML = "Lorem ipsum dolor sit amet, consectetur adipiscing eli ...
  • 看起来像Rails 3.1 RC中的fields_for语法已经改变 ,根据这个引用: 我可以证实这一点。 看来fields_for的标题改为Rails 3.1rc: Ruby on Rails最新稳定版(v3.0.7): fields_for(record_or_name_or_array, *args, &block) Ruby on Rails(v3.1rc): fields_for(record_name, record_object = nil, options = {}, &block) ...
  • 将selected="selected"添加到您的第一个选项。 jsFiddle例子 Add selected="selected" to y ...
  • 据我所知,没有办法制作一个子元素显示:无可见...所以你可以尝试使用visibility属性....缺点是,隐藏元素的宽度保持...因为其中,它使输入重叠。 希望有助于作为一个起点! label { visibility: hidden; } input { left: 0; visibility: visible; position: absolute; }
  • 微信公众平台的C#实现
  • 微信平台接入Web页面功能接口(C#)
  • There is already an open DataReader associated with this Connection which must be closed first
  • C++ Hadoop实战备忘
  • 用C#捕捉键盘和鼠标
  • CLR Via C# 3rd 阅读摘要 -- Chapter 21 – Automatic Memory Management (Garbage Collection)
  • 基于C#的UDP协议的同步实现
  • [转] C#开源项目大全
  • 微信C#响应代码
  • 《C/C++图像处理编程》扫描版[PDF]
  • 最新问答

    更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。