partial关键字的用法:把partial放在class, struct, interface关键字的前面,以用来把类,结构,接口放在多个文件中。 // Program 位于两个不同的源文件BigClassPart1.cs和BigClassPart2.cs// BigClassPart1.csp....
分类:
其他好文 时间:
2014-09-04 13:11:19
阅读次数:
187
MainViewController.h#import<UIKit/UIKit.h>
@interfaceMainViewController:UIViewController<UIScrollViewAccessibilityDelegate>
@endMainViewController.m#import"MainViewController.h"
@interfaceMainViewController()
@end
@implementationMainViewControll..
分类:
其他好文 时间:
2014-09-04 10:37:59
阅读次数:
218
MainViewController.h#import<UIKit/UIKit.h>
@interfaceMainViewController:UIViewController
@property(nonatomic,retain)UISwitch*leftSwitch;
@endMainViewController.m#import"MainViewController.h"
@interfaceMainViewController()
@end
@implementationMainViewC..
分类:
其他好文 时间:
2014-09-04 10:37:49
阅读次数:
174
第一步:定义观察者
public interface CheckVersionObserver {
/**
* 在MainActivity里面检测版本更新成功
* @param mainEntity
*/
public void onCheckNewVerSuccInMain(MainEntity mainEntity);
/**
* 检测新版本失败
* @pa...
分类:
移动开发 时间:
2014-09-04 10:33:19
阅读次数:
248
随着VS2013的发布,微软在Asp.Net中引入了很多新的特性,比如使用新的权限验证模块Identity, 使用Async来提高Web服务器的吞吐量和效率等。其中一个不得不提的是OWIN和Katana. OWIN的全称是Open Web Interface For .Net, OWIN是.Net开...
很高兴能和大家一起来分享一下,最近我对interface的理解,这次的感悟主要来源于在编程实践中interface的学习与运用过程,最后我们会将Interfac与日常生活工作中交流相结合。 以前上课听老师讲过面向接口编程这个概念,那时只是有点印象,懵懵懂懂的,在不断的编程实践中,最后终于对它有...
分类:
其他好文 时间:
2014-09-04 01:30:47
阅读次数:
200
主控台接口实现了IApplicationContextEx01接口,可以手动执行加载DLL和配置文件,具体使用方法可以参见DEMO(samples\manualLoadLib) IApplicationContextEx01 = interface(IInterface) ['{10009F97-1...
分类:
移动开发 时间:
2014-09-04 01:22:07
阅读次数:
193
通过引用Null Object,用于取消业务逻辑中对对象的为空判断
类图:
Nullable:
package com.demo.user;
public interface Nullable {
boolean isNull();
}
Group:
package com.demo.user;...
分类:
其他好文 时间:
2014-09-04 00:17:27
阅读次数:
213
代码:/*属性声明方式说明: ----------------------- 1@interface ...{ id name}@end 这样声明的属性其实可以认为是private属性,因为它只能在方法里通过name引用,外部无法通过“object.name”的方式进行引用 (内部也不能通过s...
分类:
移动开发 时间:
2014-09-04 00:09:57
阅读次数:
182
很多时候,process函数都需要获得this对象,然后调用一些方法。下面举个例子: config : function (groupName, description, deviceNumber, del) {
var ob = this;
$("#groups").flexigrid(
{
dataType: 'json',
width: 870...
分类:
其他好文 时间:
2014-09-03 22:44:27
阅读次数:
178