阅读书籍和一些C# [英] Reading Books and some C#

查看:60
本文介绍了阅读书籍和一些C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想知道你们需要多少天才能阅读一本平均的

asp.net编程书籍,请诚实地回答,例如800页大,

每天多少页?我只是想看看我的阅读速度是否太慢...... :)


接下来的问题,我的最新书中有一个简单的函数和

作者Wrox Beginning Asp.net with c#他们并不急于解释他们在他们的例子中使用的代码理论的含义,所以我想我应该自己弄明白,也许在帮助下来自一个好的灵魂,

所以这个功能有一些混淆,我很欣赏这个概念

澄清,


代码优先...


< code>

private DateTime GetSafeDate(string proposedDate)

{

//即使建议的日期无法解析,也返回非null的DateTime

DateTime safeDate;

try {

safeDate = DateTime.Parse(proposedDate,

DateTimeFormatInfo.InvariantInfo);

} catch(异常e){

Response.Write("< ! - 无法解析日期:" + e.Message +" - >");

safeDate = DateTime.MinValue;

}

返回safeDate;

}

< / code>


我最困惑的是 ; DateTime.Parse "这似乎是一个物体

的一个物体或者其他东西,我知道DateTime是一种变量,但我不是

确定这意味着什么,


此外,DateTimeFormatInfo.InvariantInfo也是如此。对我来说也不太清楚,

你有什么想法吗?


多数民众赞成,

Thanx!


-

更容易外出然后离开。

Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow... :)

Next question, i have a simple function from my latest book here and the
authors of "Wrox Beginning Asp.net with c#" were not to eager to explain the
meanings of the theory of code they used in their example so i guess i
should figure it out on my own, maybe with the help from a good soul,
So there are some confusions in the function which i d appreciate being
clarified,

The code first...

<code>
private DateTime GetSafeDate(string proposedDate)
{
// Returns a non-null DateTime even if proposed date can''t be parsed
DateTime safeDate;
try {
safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);
} catch (Exception e) {
Response.Write("<!-- Failed to parse date: " + e.Message + " -->");
safeDate = DateTime.MinValue;
}
return safeDate;
}
</code>

What i m confused about is the "DateTime.Parse" which seems like a property
of an object or something, i know DateTime is a type of variable but i m not
sure what this means here,

Also, the "DateTimeFormatInfo.InvariantInfo" is not too clear to me either,
do you have any idea?

Thats it,
Thanx!

--
Its easier to stay out then get out.

推荐答案

好如果我没有其他的东西,我可能会在一两个星期左右通过一本书大小的b $ B.


话虽如此,你应该没有确定其他人读取的速度有多快。真正的问题是,你明白你在读什么吗?你可以申请它吗?虽然我可能会很快阅读这本书,但我并没有读到

的期望,我将成为一名专家(事实上,我甚至不尝试这个样本

代码)。我的目标通常是对

技术及其与其他系统的交互方式有一个高层次的了解。这是因为我知道

有哪些工具可以解决特定问题。只有当问题需要解决时我才能深入了解更多细节。


DateTime是一个结构(类似于一个类)。 Parse是一种方法,它将
作为字符串值并将其转换为DateTime实例。几乎所有

您的数据类型都有一个Parse方法。


我没有做太多的格式化,但一般格式化允许你

指定字符串格式化的文化。每个国家/地区都有自己的

分隔符。现在,看一下这个例子,我认为你可以拥有

可能只是在没有第二个参数的情况下运行Parse并且收到了

相同的结果。


工人 < WO **** @ work.net>在消息中写道

news:bn ********** @ ls219.htnet.hr ...
Well, if I have nothing else going, I could probably go through a book that
size in about a week or two.

Having said that, you should not make determinations on how fast others
read. The real question is, do you understand what you are reading and can
you apply it. Although I may read the book quickly, I don''t read with the
expectation that I will be an expert (in fact, I don''t even try the sample
code). My goal is usually to get a high-level understanding of the
technology and how it interacts with other systems. This is so that I know
what tools are available to solve particular problems. Only when a problem
needs solving do I dive into more detail.

DateTime is a structure (similar to a class). Parse is a method that takes
a string value and converts it into a DateTime instance. Pretty much all
your datatype have a Parse method.

I have not done much with formatting, but generally formatting allows you to
specify the culture the string was formatted in. Each country has their own
delimiters. Now, looking at that example, I think that you could have
probably just run the Parse without the second parameter and received the
same results.

"Worker" <wo****@work.net> wrote in message
news:bn**********@ls219.htnet.hr...
我一直想知道有多少那些天你们需要阅读一本普通的asp.net编程书,请老实说,例如800页
大,每天多少页?我只是想看看我的阅读速度是否太慢...... :)

接下来的问题,我的最新书中有一个简单的功能,以及Wrox Beginning Asp.net的作者用c#他们并不急于解释他们在他们的例子中使用的代码理论的含义,所以我想我应该自己解决,也许是在一个好灵魂的帮助下,
因此,在功能方面存在一些令人困惑的问题,请务必澄清,

代码首先......

< code>
私有DateTime GetSafeDate(string proposedDate)
//
//即使建议的日期无法解析,也返回非null的DateTime
DateTime safeDate;
尝试{
safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);
} catch(例外e){
Response.Write("<! - 无法解析日期:" + e.Message +" - >");
safeDate = DateTime.MinValue;
}
返回safeDate;
}
< / code> ;

我对此感到困惑的是DateTime.Parse。这看起来像一个对象或某物的
属性,我知道DateTime是一种变量,但我不知道这是什么意思,

另外,DateTimeFormatInfo .InvariantInfo"对我来说不太清楚
,你有什么想法吗?

那就是它,
Thanx!

-
它更容易待在外面然后离开。
Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big, how many pages a day? I just wanna see if i m reading too slow... :)

Next question, i have a simple function from my latest book here and the
authors of "Wrox Beginning Asp.net with c#" were not to eager to explain the meanings of the theory of code they used in their example so i guess i
should figure it out on my own, maybe with the help from a good soul,
So there are some confusions in the function which i d appreciate being
clarified,

The code first...

<code>
private DateTime GetSafeDate(string proposedDate)
{
// Returns a non-null DateTime even if proposed date can''t be parsed
DateTime safeDate;
try {
safeDate = DateTime.Parse(proposedDate,
DateTimeFormatInfo.InvariantInfo);
} catch (Exception e) {
Response.Write("<!-- Failed to parse date: " + e.Message + " -->");
safeDate = DateTime.MinValue;
}
return safeDate;
}
</code>

What i m confused about is the "DateTime.Parse" which seems like a property of an object or something, i know DateTime is a type of variable but i m not sure what this means here,

Also, the "DateTimeFormatInfo.InvariantInfo" is not too clear to me either, do you have any idea?

Thats it,
Thanx!

--
Its easier to stay out then get out.



I%SAY :::
I% SAY :::
你好,我一直想知道你们需要多少天才能阅读一本普通的asp.net编程书,请老实说,例如800页大,
每天多少页?我只是想看看我的阅读速度是否太慢...... :)


不是很多,但我每天都读了一下

这本书, c#类设计,编码有效

类。我想我知道asp.net的基础知识

web mechanics,我有编程服务,客户端

应用程序和控制台应用程序,所以现在我

想要学习如何使用OOP进行真正的设计。


并不是像c#和

java这样的语言来解放我们机械师所以我们

可以专注于设计吗?


下一个问题,我在这里的最新书中有一个简单的功能和
Wrox Beginning Asp.net with c#的作者并不急于解释

我感到困惑的是DateTime.Parse。这似乎是一个物体或某物的属性,我知道DateTime是一种变量,但我不确定这意味着什么,
Hi , i`ve been wondering how many days do you guys need to read an average
asp.net programming book, answer honestly please, for example 800 pages big,
how many pages a day? I just wanna see if i m reading too slow... :)

not a lot, but i read a little bit each day
of the book, "c# class design, coding effective
classes". i think i know the basics of asp.net
web mechanics, i have programmed services, client
applications and console application, so now i
want to learn how to really design using OOP.

isn''t that the poing of languages like c# and
java, to liberate us from the mechanics so we
can concentrate on design?



Next question, i have a simple function from my latest book here and the
authors of "Wrox Beginning Asp.net with c#" were not to eager to explain the
What i m confused about is the "DateTime.Parse" which seems like a property
of an object or something, i know DateTime is a type of variable but i m not
sure what this means here,




搞笑你应该问,因为如果你读上面的那本书你会知道。


。在.Net框架中,虽然有很多

''原始''数据类型,.Net的点是

,它支持许多对象数据类型,其中
不仅是数据类型,而是带有他们

适用于数据的方法和属性和

数据类型。



funny you should ask, because if you read
the book above you would know.

in the .Net framework, while there are many
''primitive'' datatypes, the point of .Net is
that it supports many object datatypes, which
are not only datatypes but carry with them
methods and properties that apply to data and
that datatype.


IR BABOON写道:
I R BABOON wrote:
下一个问题,我的最新书中有一个简单的函数
和Wrox Beginning Asp.net with c#的作者我并不急于解释
我对此感到困惑的是DateTime.Parse。这似乎是对象或其他东西的属性,我知道DateTime是一种变量,但我不知道这意味着什么,
Next question, i have a simple function from my latest book here
and the authors of "Wrox Beginning Asp.net with c#" were not to
eager to explain the
What i m confused about is the "DateTime.Parse" which seems like a
property of an object or something, i know DateTime is a type of
variable but i m not sure what this means here,



搞笑你应该问一下,因为如果你看了上面的那本书就知道了。



funny you should ask, because if you read
the book above you would know.




纠正我,如果我错了,但我没有看到DateTime.Parse的解释

整本书。

我读过它,我不记得它被解释了,我还搜索了

指数和theres没有这样的东西也提到了b $ b的东西,我可能错了。


-

它更容易留在外面然后得到out。



Correct me if i m wrong but i have seen no explanation of DateTime.Parse in
the whole book.
I`ve read it, and i dont remember it being explained, i ve also searched the
index and theres no such
thing mentioned there either, i might be wrong though.

--
Its easier to stay out then get out.


这篇关于阅读书籍和一些C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆