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


C# NSCoder.DecodeFloat方法代码示例

本文整理汇总了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");
 }
开发者ID:yingfangdu,项目名称:BNR,代码行数:7,代码来源:Person.cs

示例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");
        }
开发者ID:yingfangdu,项目名称:BNR,代码行数:16,代码来源:Car.cs

示例3: DecodeRestorableState

		public override void DecodeRestorableState (NSCoder coder)
		{
			base.DecodeRestorableState (coder);
			if (coder.ContainsKey (BlurRadiusKey))
				BlurRadius = coder.DecodeFloat (BlurRadiusKey);
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:6,代码来源:BlurFilter.cs

示例4: DecodeRestorableState

		public override void DecodeRestorableState (NSCoder coder)
		{
			base.DecodeRestorableState (coder);
			if (coder.ContainsKey (IntensityKey))
				Intensity = coder.DecodeFloat (IntensityKey);
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:6,代码来源:ModifyFilter.cs

示例5: Oval

        public Oval(NSCoder decoder)
        {
            StartPoint = new CGPoint(decoder.DecodeFloat("startPointX"), decoder.DecodeFloat("startPointY"));

            Endpoint = new CGPoint(decoder.DecodeFloat("endPointX"), decoder.DecodeFloat("endPointY"));
        }
开发者ID:yingfangdu,项目名称:BNR,代码行数:6,代码来源:Oval.cs


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