Der Wert eines literalen statischen Elements wird von der Verwendung von Feldinitialisierungsmetadaten angegeben.
Ein CLS-kompatibles Literal muss über einen Wert verfügen, der in den Feldinitialisierungsmetadaten angegeben wird, der genau vom gleichen Typ wie das Literal ist ( oder des zugrunde liegenden Typs, wenn dieses Literal enum ist ).
13
msdn.microsoft.comThe value of a literal static is specified through the use of field initialization metadata.
A CLS-compliant literal must have a value specified in field initialization metadata that is of exactly the same type as the literal ( or of the underlying type, if that literal is an enum ).
13
msdn.microsoft.comFalls Sie es vorziehen, können Sie die Zeit auch im amerikanischen hh.mm am / pm Format angeben.
Dazu müssen Sie das Literal mit Anführungszeichen setzen und das Schlüsselwort TIME voranstellen:
INSERT INTO WorkOrder (ID, StartTime) VALUES ('B00120', TIME'10.30 pm')
www.dataweb.deIf you prefer, you can enter the time value in the American format hh : mm : ss am / pm.
In order to do this, you must enclose the time literal in single quotes and proceed it by the keyword TIME:
INSERT INTO WorkOrder (ID, StartTime) VALUES ('B00120', TIME'10:30:00 pm')
www.dataweb.deDer Rückgabetyp einer Funktion wird anhand des Typs des letzten Ausdrucks in der Funktion bestimmt.
Beispielsweise werden im folgenden Code die Parametertypen a und b sowie der Rückgabetyp als int abgeleitet, da das Literal 100 vom Typ int ist.
F#
msdn.microsoft.comThe return type of a function is determined by the type of the last expression in the function.
For example, in the following code, the parameter types a and b and the return type are all inferred to be int because the literal 100 is of type int.
F#
msdn.microsoft.com您想添加一个词、一个短语或一段译文吗?
请发送新条目。