本文整理汇总了C#中NSCoder.DecodeFloat方法的典型用法代码示例。如果您正苦于以下问题:C# NSCoder.DecodeFloat方法的具体用法?C# NSCoder.DecodeFloat怎么用?C# NSCoder.DecodeFloat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NSCoder
的用法示例。
在下文中一共展示了NSCoder.DecodeFloat方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Person
public Person(NSCoder decoder)
{
NSString str = (NSString)decoder.DecodeObject("name");
if (str != null)
this.Name = str.ToString();
this.ExpectedRaise = decoder.DecodeFloat("expectedRaise");
}
示例2: Car
public Car(NSCoder decoder)
{
NSString str = (NSString)decoder.DecodeObject("makeModel");
if (str != null)
this.MakeModel = str.ToString();
DatePurchased = (NSDate)decoder.DecodeObject("datePurchased");
this.Condition = decoder.DecodeInt("condition");
this.OnSpecial = decoder.DecodeBool("onSpecial");
this.Price = decoder.DecodeFloat("price");
this.Photo = (NSImage)decoder.DecodeObject("photo");
}
示例3: DecodeRestorableState
public override void DecodeRestorableState (NSCoder coder)
{
base.DecodeRestorableState (coder);
if (coder.ContainsKey (BlurRadiusKey))
BlurRadius = coder.DecodeFloat (BlurRadiusKey);
}
示例4: DecodeRestorableState
public override void DecodeRestorableState (NSCoder coder)
{
base.DecodeRestorableState (coder);
if (coder.ContainsKey (IntensityKey))
Intensity = coder.DecodeFloat (IntensityKey);
}
示例5: Oval
public Oval(NSCoder decoder)
{
StartPoint = new CGPoint(decoder.DecodeFloat("startPointX"), decoder.DecodeFloat("startPointY"));
Endpoint = new CGPoint(decoder.DecodeFloat("endPointX"), decoder.DecodeFloat("endPointY"));
}