http://www.codewars.com/kata/566f571ed78037c7b6000036/train/csharp

You don't have any idea what is the type of the input object, but you know that it has Length property.

(The input can be any type of object that has Length property)

So, the GetLength method should return the Length of input.

public class Kata
{
public static int GetLength(object obj)
{
dynamic a = obj;
return a.Length;
}
}

最新文章

  1. jQuery 取消事件冒泡 阻止后续内容执行 闭包函数 (学习笔记)
  2. python之文件操作
  3. ios base64图片上传失败问题
  4. 自动化脚本过程中出现This element neither has attached source nor attached Javadoc...的解决方法
  5. 分享:shell去掉linux配置文件的注释行
  6. uva----(10794) A Different Task
  7. java基础之 垃圾回收机制
  8. 【转】3 Essential Sublime Text Plugins for Node & JavaScript Developers
  9. 安卓开发之使用viewpager+fragment实现滚动tab页
  10. WP开发笔记——不同Item显示不同ApplicationBar:适用于Pivot与Panorama
  11. Crashing Robots
  12. MySQL操作符
  13. 【整合】input标签JS改变Value事件处理方法
  14. 软工+C(2017第5期) 工具和结构化
  15. mvc中传入字典的模型项的类型问题
  16. PHP 反射类学习记录
  17. 0307-关于html
  18. uni-app—从安装到卸载
  19. ansible-playbook组件解析及操作全解
  20. 一篇文章有若干行,以空行作为输入结束的条件。统计一篇文章中单词the(不管大小写,单词the是由空格隔开的)的个数。

热门文章

  1. Java 开源博客 Solo 1.3.0 发布 - Docker 支持
  2. mysql下载和安装Windows服务
  3. Win32编程笔记
  4. 在centOS环境搭建airtest时遇到 Xlib.error.DisplayNameError: Bad display name "" 和Xlib.error.XauthError异常
  5. php base64互转pdf
  6. img、a标签的使用
  7. 使用Python的Flask框架,结合Highchart,动态渲染图表
  8. 70. Climbing Stairs(动态规划)
  9. 火狐浏览器插件(XPI 文件)签名指南
  10. 【codeforces 796D】Police Stations